Package com.graphaware.common.util
Class Change<T>
- java.lang.Object
-
- com.graphaware.common.util.Change<T>
-
public class Change<T> extends Object
Change in the state of an object, encapsulating the old (previous) and the new (current).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Entity>
Map<Long,Change<T>>changesToMap(Collection<Change<T>> changes)
boolean
equals(Object o)
T
getCurrent()
Get the current (new) state of the object.T
getPrevious()
Get the previous (old) state of the object.int
hashCode()
-
-
-
Method Detail
-
getPrevious
public T getPrevious()
Get the previous (old) state of the object.- Returns:
- previous state
-
getCurrent
public T getCurrent()
Get the current (new) state of the object.- Returns:
- current state
-
-