public class EqualityKeyComparator extends AbstractHashTable.AbstractObjectComparator
| Constructor and Description |
|---|
EqualityKeyComparator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(Object o1,
Object o2)
Equality key reverses the compare, so that the key controls the comparison
|
int |
compare(Object o1,
Object o2) |
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
IOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
IOExceptionpublic int hashCodeOf(Object key)
public boolean areEqual(Object o1, Object o2)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.