ice.util.alg
Interface Comparator

All Known Implementing Classes:
IgnoreAsciiCaseComparator, SysComparator

public interface Comparator

Interface that knows how to compare and calculate hash code of objects


Method Summary
 boolean equals(Object obj1, Object obj2)
          Compare objects
 int hashCode(Object obj)
          Calculate object hashcode.
 

Method Detail

equals

public boolean equals(Object obj1,
                      Object obj2)
Compare objects


hashCode

public int hashCode(Object obj)
Calculate object hashcode. Requirements: if equals method return true for 2 objects, they should have the same hash code