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

difflib.myers.Equalizer Maven / Gradle / Ivy

Go to download

The DiffUtils library for computing diffs, applying patches, generationg side-by-side view in Java.

There is a newer version: 1.5.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy