Class RankedComparator<T>
java.lang.Object
org.glassfish.jersey.model.internal.RankedComparator<T>
- Type Parameters:
T
- Type of the elements to be sorted.
- All Implemented Interfaces:
Comparator<RankedProvider<T>>
Comparator used to sort types by their priorities defined by theirs binding priority set during the configuration phase
(
Configuration
) in ranked provider
.- Author:
- Miroslav Fuksa, Michal Gajdos
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Defines which ordering should be used for sorting. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(RankedProvider<T> o1, RankedProvider<T> o2) protected int
getPriority
(RankedProvider<T> rankedProvider) 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
-
RankedComparator
public RankedComparator() -
RankedComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-
getPriority
-