@FunctionalInterface public interface IEquator<T>
This interface externalizes the notion of equality. This way, different notions of equality can be applied to the same object in different contexts.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(T element1,
T element2)
Returns
true , if the elements are equal, false
if not. |