ice.util.alg
Class SysComparator

java.lang.Object
  extended byice.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


Field Summary
static SysComparator instance
           
 
Constructor Summary
SysComparator()
           
 
Method Summary
 boolean equals(Object obj1, Object obj2)
          Compare objects
 int hashCode(Object obj)
          Calculate object hashcode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final SysComparator instance
Constructor Detail

SysComparator

public SysComparator()
Method Detail

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