org.drools.common
Class EqualityKeyComparator
java.lang.Object
org.drools.core.util.AbstractHashTable.AbstractObjectComparator
org.drools.common.EqualityKeyComparator
- All Implemented Interfaces:
- Externalizable, Serializable, AbstractHashTable.ObjectComparator
public class EqualityKeyComparator
- extends AbstractHashTable.AbstractObjectComparator
- See Also:
- Serialized Form
EqualityKeyComparator
public EqualityKeyComparator()
getInstance
public static EqualityKeyComparator getInstance()
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 key)
equal
public boolean equal(Object o1,
Object o2)
- Equality key reverses the compare, so that the key controls the comparison
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.