org.drools.common
Class EqualityAssertMapComparator

java.lang.Object
  extended by org.drools.core.util.AbstractHashTable.AbstractObjectComparator
      extended by org.drools.common.EqualityAssertMapComparator
All Implemented Interfaces:
Externalizable, Serializable, AbstractHashTable.ObjectComparator

public class EqualityAssertMapComparator
extends AbstractHashTable.AbstractObjectComparator

See Also:
Serialized Form

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

Constructor Detail

EqualityAssertMapComparator

public EqualityAssertMapComparator()
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Throws:
IOException

hashCodeOf

public int hashCodeOf(Object obj)

equal

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


compare

public int compare(Object o1,
                   Object o2)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.