Class HasPriority.TreeMapComparator
java.lang.Object
org.jboss.resteasy.reactive.common.model.HasPriority.TreeMapComparator
- All Implemented Interfaces:
Comparator<HasPriority>
- Enclosing interface:
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
FieldsModifier and TypeFieldDescriptionstatic final HasPriority.TreeMapComparatorstatic final HasPriority.TreeMapComparator -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
INSTANCE
-
REVERSED
-
-
Constructor Details
-
TreeMapComparator
public TreeMapComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<HasPriority>
-