Class Diff<T>


  • public class Diff<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T _newItem  
      private T _oldItem  
    • Constructor Summary

      Constructors 
      Constructor Description
      Diff​(T oldItem, T newItem)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getNewItem()
      Returns the new item.
      T getOldItem()
      Returns the old item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _oldItem

        private final T _oldItem
      • _newItem

        private final T _newItem
    • Constructor Detail

      • Diff

        Diff​(T oldItem,
             T newItem)
    • Method Detail

      • getOldItem

        public T getOldItem()
        Returns the old item.
        Returns:
        the old item or null
      • getNewItem

        public T getNewItem()
        Returns the new item.
        Returns:
        the new item or null
      • toString

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