Package org.jboss.resteasy.spi
Class PriorityComparator<T>
- java.lang.Object
-
- org.jboss.resteasy.spi.PriorityComparator<T>
-
- All Implemented Interfaces:
Comparator<T>
public class PriorityComparator<T> extends Object implements Comparator<T>
Sorts components based on the@Priority. The default is {@link Priorities#USER}.
- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description PriorityComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T o1, T 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
-
-
-
-
Method Detail
-
compare
public int compare(T o1, T o2)
- Specified by:
compare
in interfaceComparator<T>
-
-