T - a type of Kubernetes resourcepublic class Event<T extends HasMetadata> extends AbstractEvent<T>
AbstractEvent that represents another event that has
occurred to a Kubernetes resource, usually as found in an EventCache implementation.EventCache,
Serialized FormAbstractEvent.Typesource| Constructor and Description |
|---|
Event(Object source,
AbstractEvent.Type type,
T priorResource,
T resource)
Creates a new
Event. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
|
getKey, getPriorResource, getResource, getType, hashCode, isFinalStateKnown, toStringgetSourcepublic Event(Object source, AbstractEvent.Type type, T priorResource, T resource)
Event.source - the creator; must not be nulltype - the Type of this Event; must not be
nullpriorResource - a HasMetadata representing the
prior state of the Kubernetes
resource this Event primarily concerns; may
be—and often is—nullresource - a HasMetadata representing a Kubernetes
resource; must not be nullNullPointerException - if source, type
or resource is nullType,
EventObject.getSource()public boolean equals(Object other)
equals in class AbstractEvent<T extends HasMetadata>other - the Object to test; may be null in
which case false will be returnedtrue if the supplied Object is also an
Event and is equal in every respect to this one; false otherwiseCopyright © 2017–2021, microBean™. All rights reserved.