T
- the type to compareK
- the similarity type of T
public abstract class ProxySimilarityComparator<T,K extends Similar<K>> extends Object implements Comparator<T>
Modifier and Type | Field and Description |
---|---|
private SimilarityComparator<K> |
comp |
Constructor and Description |
---|
ProxySimilarityComparator(K ref) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
protected abstract Collection<K> |
getSimilars(T t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
private final SimilarityComparator<K extends Similar<K>> comp
public ProxySimilarityComparator(K ref)
public int compare(T o1, T o2)
compare
in interface Comparator<T>
protected abstract Collection<K> getSimilars(T t)
Copyright © 2012-2015 52north.org. All Rights Reserved.