T - type of SimpleDataStructure objects being comparedpublic class XORComparator<T extends SimpleDataStructure> extends Object implements Comparator<T>, Serializable
| Constructor and Description |
|---|
XORComparator(T target)Create a comparator with the given target key. |
| Modifier and Type | Method and Description |
|---|---|
int | compare(T lhs,
T rhs)compare. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, 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>