ice.util.alg
Class SysComparator
java.lang.Object
ice.util.alg.SysComparator
- All Implemented Interfaces:
- Comparator
- public class SysComparator
- extends Object
- implements Comparator
Comparator implementation that uses == to compare and System.identityHashCode() for hash code
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final SysComparator instance
SysComparator
public SysComparator()
equals
public boolean equals(Object obj1,
Object obj2)
- Description copied from interface:
Comparator
- Compare objects
- Specified by:
equals in interface Comparator
hashCode
public int hashCode(Object obj)
- Description copied from interface:
Comparator
- Calculate object hashcode.
Requirements: if equals method return true for 2 objects, they
should have the same hash code
- Specified by:
hashCode in interface Comparator