Package org.n52.janmayen.similar
Class ProxySimilarityComparator<T,K extends Similar<K>>
java.lang.Object
org.n52.janmayen.similar.ProxySimilarityComparator<T,K>
- Type Parameters:
T- the type to compareK- the similarity type ofT
- All Implemented Interfaces:
Comparator<T>
public abstract class ProxySimilarityComparator<T,K extends Similar<K>>
extends Object
implements Comparator<T>
TODO JavaDoc
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic <C extends Keyed<K>,K extends Similar<K>>
Comparator<C> create(K ref) static <T,K extends Similar<K>>
Comparator<T> create(K ref, Function<T, Collection<K>> similars) protected abstract Collection<K> getSimilars(T t) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ProxySimilarityComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T>
-
getSimilars
-
create
-
create
public static <T,K extends Similar<K>> Comparator<T> create(K ref, Function<T, Collection<K>> similars)
-