Class Change<T>


  • public class Change<T>
    extends Object
    Change in the state of an object, encapsulating the old (previous) and the new (current).
    • Constructor Detail

      • Change

        public Change​(T previous,
                      T current)
        Construct a change representation.
        Parameters:
        previous - state of the object.
        current - state of the object.
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object