public class EqualityKeyComparator extends AbstractHashTable.AbstractObjectComparator
Constructor and Description |
---|
EqualityKeyComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
boolean |
equal(Object o1,
Object o2)
Equality key reverses the compare, so that the key controls the comparison
|
static EqualityKeyComparator |
getInstance() |
int |
hashCodeOf(Object key) |
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static EqualityKeyComparator getInstance()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
IOException
public int hashCodeOf(Object key)
public boolean equal(Object o1, Object o2)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.