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 enumDefines which ordering should be used for sorting. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(RankedProvider<T> o1, RankedProvider<T> o2) protected intgetPriority(RankedProvider<T> rankedProvider) 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
-
RankedComparator
public RankedComparator() -
RankedComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T>
-
getPriority
-