|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.process.internal.PriorityComparator<T>
T - Type of the elements to be sorted.public class PriorityComparator<T>
Comparator used to sort types by their priorities defined by annotations BindingPriority.
| Nested Class Summary | |
|---|---|
static class |
PriorityComparator.Order
Defines which ordering should be used for sorting. |
| Constructor Summary | |
|---|---|
PriorityComparator(PriorityComparator.Order order)
|
|
| Method Summary | |
|---|---|
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 |
| Constructor Detail |
|---|
public PriorityComparator(PriorityComparator.Order order)
| Method Detail |
|---|
public int compare(T o1,
T o2)
compare in interface java.util.Comparator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||