Class Differ<T>

  • Type Parameters:
    T - the type of object in the list

    public class Differ<T>
    extends Object
    This class performs a diff between two lists or arrays and returns a list of Diff objects that describe the differences.
    • Constructor Detail

      • Differ

        public Differ​(T[] text1,
                      T[] text2)
      • Differ

        public Differ​(T[] text1,
                      T[] text2,
                      Comparator<T> comp)
      • Differ

        public Differ​(List<T> text1,
                      List<T> text2)
    • Method Detail

      • getDifferences

        public DiffList<T> getDifferences()