T
- public abstract class EqualityComparer<T> extends java.lang.Object implements IEqualityComparer<T>
Modifier | Constructor and Description |
---|---|
protected |
EqualityComparer() |
public abstract boolean equals(T x, T y)
IEqualityComparer
equals
in interface IEqualityComparer<T>
x
- The first object of type T to compare.y
- The second object of type T to compare.true
if the specified objects are equal; otherwise, false
.public abstract int hashCode(T obj)
IEqualityComparer
hashCode
in interface IEqualityComparer<T>
obj
- The Object for which a hash code is to be returned.