public interface IEqualityComparer<T>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(T x,
T y)
Determines whether the specified objects are equal.
|
int |
getHashCode(T obj)
Returns a hash code for the specified object.
|
boolean equals(T x, T y)
x
- The first object of type T to compare.y
- The second object of type T to compare.int getHashCode(T obj)
obj
- The Object for which a hash code is to be returned.