Package de.otto.synapse.endpoint
Class BestMatchingSelectableComparator
java.lang.Object
de.otto.synapse.endpoint.BestMatchingSelectableComparator
- All Implemented Interfaces:
java.util.Comparator<Selectable>
public class BestMatchingSelectableComparator extends java.lang.Object implements java.util.Comparator<Selectable>
-
Constructor Summary
Constructors Constructor Description BestMatchingSelectableComparator(java.lang.Class<? extends Selector> selector) -
Method Summary
Modifier and Type Method Description intcompare(Selectable firstCandidate, Selectable secondCandidate)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
-
BestMatchingSelectableComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfacejava.util.Comparator<Selectable>
-