当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
EqualityKeyComparator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.common
Class EqualityKeyComparator
java.lang.Object
org.drools.common.EqualityKeyComparator
- All Implemented Interfaces:
- Serializable, AbstractHashTable.ObjectComparator
public class EqualityKeyComparator
- extends Object
- implements AbstractHashTable.ObjectComparator
- See Also:
- Serialized Form
EqualityKeyComparator
public EqualityKeyComparator()
getInstance
public static EqualityKeyComparator getInstance()
hashCodeOf
public int hashCodeOf(Object key)
- Specified by:
hashCodeOf
in interface AbstractHashTable.ObjectComparator
rehash
public int rehash(int h)
- Specified by:
rehash
in interface AbstractHashTable.ObjectComparator
equal
public boolean equal(Object o1,
Object o2)
- Equality key reverses the compare, so that the key controls the comparison
- Specified by:
equal
in interface AbstractHashTable.ObjectComparator
compare
public int compare(Object o1,
Object o2)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.