T - the type to compareK - the similarity type of Tpublic abstract class ProxySimilarityComparator<T,K extends Similar<K>> extends Object implements Comparator<T>
| Constructor and Description |
|---|
ProxySimilarityComparator(K ref) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
static <C extends Keyed<K>,K extends Similar<K>> |
create(K ref) |
static <T,K extends Similar<K>> |
create(K ref,
Function<T,Collection<K>> similars) |
protected abstract Collection<K> |
getSimilars(T t) |
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 ProxySimilarityComparator(K ref)
public int compare(T o1, T o2)
compare in interface Comparator<T>protected abstract Collection<K> getSimilars(T t)
public static <C extends Keyed<K>,K extends Similar<K>> Comparator<C> create(K ref)
public static <T,K extends Similar<K>> Comparator<T> create(K ref, Function<T,Collection<K>> similars)
Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.