org.glassfish.jersey.process.internal
Class PriorityComparator<T>
java.lang.Object
org.glassfish.jersey.process.internal.PriorityComparator<T>
- Type Parameters:
T - Type of the elements to be sorted.
- All Implemented Interfaces:
- Comparator<T>
public class PriorityComparator<T>
- extends Object
- implements Comparator<T>
Comparator used to sort types by their priorities defined by annotations BindingPriority.
- Author:
- Miroslav Fuksa (miroslav.fuksa at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriorityComparator
public PriorityComparator(PriorityComparator.Order order)
compare
public int compare(T o1,
T o2)
- Specified by:
compare in interface Comparator<T>
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.