difflib.myers.Equalizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of diffutils Show documentation
Show all versions of diffutils Show documentation
The DiffUtils library for computing diffs, applying patches, generationg side-by-side view in Java.
package difflib.myers;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nullable;
/**
* Specifies when two compared elements in the Myers algorithm are equal.
*
* @param T The type of the compared elements in the 'lines'.
*/
public interface Equalizer {
/**
* Indicates if two elements are equal according to the diff mechanism.
* @param original The original element. Must not be {@code null}.
* @param revised The revised element. Must not be {@code null}.
* @return Returns true if the elements are equal.
*/
@CheckReturnValue
public boolean equals(@Nullable T original, @Nullable T revised);
}