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
    int compare​(Selectable firstCandidate, Selectable secondCandidate)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Comparator

    equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
  • Constructor Details

    • BestMatchingSelectableComparator

      public BestMatchingSelectableComparator​(java.lang.Class<? extends Selector> selector)
  • Method Details

    • compare

      public int compare​(Selectable firstCandidate, Selectable secondCandidate)
      Specified by:
      compare in interface java.util.Comparator<Selectable>