Class DeltaList<E>


  • final class DeltaList<E>
    extends java.lang.Object
    Show the modifications between two lists.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<E> added  
      private boolean hasChanged  
      private java.util.List<E> removed  
    • Constructor Summary

      Constructors 
      Constructor Description
      DeltaList​(java.util.Collection<E> oldList, java.util.Collection<E> newList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.Collection<E> getAdded()  
      (package private) java.util.Collection<E> getRemoved()  
      (package private) boolean hasChanged()  
      • Methods inherited from class java.lang.Object

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

      • added

        private final java.util.List<E> added
      • removed

        private final java.util.List<E> removed
      • hasChanged

        private final boolean hasChanged
    • Constructor Detail

      • DeltaList

        DeltaList​(java.util.Collection<E> oldList,
                  java.util.Collection<E> newList)
    • Method Detail

      • getAdded

        java.util.Collection<E> getAdded()
      • getRemoved

        java.util.Collection<E> getRemoved()
      • hasChanged

        boolean hasChanged()