Package org.onosproject.event
Class Change<T>
- java.lang.Object
-
- org.onosproject.event.Change<T>
-
- Type Parameters:
T
- type of value that was updated
public class Change<T> extends java.lang.Object
Generic representation of an update.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
T
newValue()
Returns new or current value.T
oldValue()
Returns previous value.java.lang.String
toString()
-
-
-
Method Detail
-
oldValue
public T oldValue()
Returns previous value.- Returns:
- previous value.
-
newValue
public T newValue()
Returns new or current value.- Returns:
- new value.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-