org.drools.common
Class EqualityAssertMapComparator

java.lang.Object
  extended by org.drools.common.EqualityAssertMapComparator
All Implemented Interfaces:
java.io.Serializable, AbstractHashTable.ObjectComparator

public class EqualityAssertMapComparator
extends java.lang.Object
implements AbstractHashTable.ObjectComparator

See Also:
Serialized Form

Constructor Summary
EqualityAssertMapComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equal(java.lang.Object o1, java.lang.Object o2)
          Special comparator that allows FactHandles to be keys, but always checks equals with the identity of the objects involved
 int hashCodeOf(java.lang.Object obj)
           
 int rehash(int h)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqualityAssertMapComparator

public EqualityAssertMapComparator()
Method Detail

hashCodeOf

public int hashCodeOf(java.lang.Object obj)
Specified by:
hashCodeOf in interface AbstractHashTable.ObjectComparator

rehash

public int rehash(int h)
Specified by:
rehash in interface AbstractHashTable.ObjectComparator

equal

public boolean equal(java.lang.Object o1,
                     java.lang.Object o2)
Special comparator that allows FactHandles to be keys, but always checks equals with the identity of the objects involved

Specified by:
equal in interface AbstractHashTable.ObjectComparator

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object