Class Change<T>

  • Type Parameters:
    T - type of value that was updated

    public class Change<T>
    extends java.lang.Object
    Generic representation of an update.
    • Constructor Summary

      Constructors 
      Constructor Description
      Change​(T oldValue, T newValue)  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Change

        public Change​(T oldValue,
                      T newValue)
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object