public class XORComparator<T extends SimpleDataStructure> extends Object implements Comparator<T>, Serializable
Constructor and Description |
---|
XORComparator(T target) |
public XORComparator(T target)
target
- key to compare distances withpublic int compare(T lhs, T rhs)
compare
in interface Comparator<T extends SimpleDataStructure>