Interface Equalizer<T>

  • Type Parameters:
    T - The type of the compared elements in the 'lines'.

    public interface Equalizer<T>
    Copy from https://code.google.com/p/java-diff-utils/.

    Specifies when two compared elements in the Myers algorithm are equal.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(T original, T revised)
      Indicates if two elements are equal according to the diff mechanism.
    • Method Detail

      • equals

        boolean equals​(T original,
                       T revised)
        Indicates if two elements are equal according to the diff mechanism.
        Parameters:
        original - The original element. Must not be null.
        revised - The revised element. Must not be null.
        Returns:
        Returns true if the elements are equal.