io.cucumber.datatable.dependency.difflib.myers.Equalizer Maven / Gradle / Ivy
package io.cucumber.datatable.dependency.difflib.myers;
/**
* 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.
*/
public boolean equals(T original, T revised);
}