
difflib.myers.Equalizer Maven / Gradle / Ivy
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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy