Package org.onosproject.store.service
Class AtomicValueEvent<V>
- java.lang.Object
-
- org.onosproject.store.service.AtomicValueEvent<V>
-
- Type Parameters:
V
- atomic value type
public final class AtomicValueEvent<V> extends Object
Representation of a AtomicValue update notification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AtomicValueEvent.Type
AtomicValueEvent type.
-
Constructor Summary
Constructors Constructor Description AtomicValueEvent(String name, V newValue, V oldValue)
Creates a new event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
name()
Returns the AtomicValue name.V
newValue()
Returns the newly set value.V
oldValue()
Returns the old replaced value.String
toString()
AtomicValueEvent.Type
type()
Returns the type of the event.
-
-
-
Method Detail
-
name
public String name()
Returns the AtomicValue name.- Returns:
- name of atomic value
-
type
public AtomicValueEvent.Type type()
Returns the type of the event.- Returns:
- the type of the event
-
newValue
public V newValue()
Returns the newly set value.- Returns:
- the new value
-
oldValue
public V oldValue()
Returns the old replaced value.- Returns:
- the old value
-
-