Package org.onosproject.store.service
Class SetEvent<E>
- java.lang.Object
-
- org.onosproject.store.service.SetEvent<E>
-
- Type Parameters:
E- set element type
public final class SetEvent<E> extends java.lang.ObjectRepresentation of a DistributedSet update notification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetEvent.TypeSetEvent type.
-
Constructor Summary
Constructors Constructor Description SetEvent(java.lang.String name, SetEvent.Type type, E entry)Creates a new event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eentry()Returns the entry this event concerns.booleanequals(java.lang.Object o)inthashCode()java.lang.Stringname()Returns the set name.java.lang.StringtoString()SetEvent.Typetype()Returns the type of the event.
-
-
-
Constructor Detail
-
SetEvent
public SetEvent(java.lang.String name, SetEvent.Type type, E entry)Creates a new event object.- Parameters:
name- set nametype- type of the evententry- entry the event concerns
-
-
Method Detail
-
name
public java.lang.String name()
Returns the set name.- Returns:
- name of set
-
type
public SetEvent.Type type()
Returns the type of the event.- Returns:
- type of the event
-
entry
public E entry()
Returns the entry this event concerns.- Returns:
- the entry
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-