Serializable, Comparator<T>public class XORComparator<T extends SimpleDataStructure> extends Object implements Comparator<T>, Serializable
| Constructor | Description |
|---|---|
XORComparator(T target) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(T lhs,
T rhs) |
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic XORComparator(T target)
target - key to compare distances withpublic int compare(T lhs, T rhs)
compare in interface Comparator<T extends SimpleDataStructure>