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.Type
source
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, toString
getSource
public Event(Object source, AbstractEvent.Type type, T priorResource, T resource)
Event
.source
- the creator; must not be null
type
- the Type
of this Event
; must not be
null
priorResource
- 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 null
NullPointerException
- if source
, type
or resource
is null
Type
,
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.