All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.datatable.dependency.difflib.myers.Equalizer Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy