Class HasPriority.TreeMapComparator
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.model.HasPriority.TreeMapComparator
-
- All Implemented Interfaces:
Comparator<HasPriority>
- Enclosing interface:
- HasPriority
public static class HasPriority.TreeMapComparator extends Object implements Comparator<HasPriority>
This comparator is used when a TreeMap is employed to order objects that have priority because TreeMap will only keep one key if multiple keys compare to the same value
-
-
Field Summary
Fields Modifier and Type Field Description static HasPriority.TreeMapComparator
INSTANCE
-
Constructor Summary
Constructors Constructor Description TreeMapComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(HasPriority o1, HasPriority o2)
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final HasPriority.TreeMapComparator INSTANCE
-
-
Method Detail
-
compare
public int compare(HasPriority o1, HasPriority o2)
- Specified by:
compare
in interfaceComparator<HasPriority>
-
-