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 Object
Representation 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(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(Object o)inthashCode()Stringname()Returns the set name.StringtoString()SetEvent.Typetype()Returns the type of the event.
-
-
-
Constructor Detail
-
SetEvent
public SetEvent(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 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
-
-