EqualityComparator uses object equality
for comparisons by calling Object#hashCode and Object#equals.
| Modifier and Type | Field and Description |
|---|---|
| public static final ObjectEqualityComparator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
The first object to compare. a, Object The second object to compare. b)Implements org. |
| public int | hashCode(Object
The object. obj)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final ObjectEqualityComparator INSTANCE | |
| ObjectEqualityComparator | back to summary |
|---|---|
| public ObjectEqualityComparator() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object a, Object b) Implements org. Doc from org. This method tests if two objects are equal. This implementation relies on object equality. If both objects are
| |
| hashCode | back to summary |
|---|---|
| public int hashCode(Object obj) Implements org. Doc from org. This method returns a hash code for the specified object. This implementation returns
| |