public class PriorityServiceComparator extends Object implements Comparator<Object>
| Constructor and Description |
|---|
PriorityServiceComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
static int |
getPriority(Class type)
Checks the given type optionally annotated with a @Priority.
|
static int |
getPriority(Object o)
Checks the given instance for a @Priority annotation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(Object o1, Object o2)
compare in interface Comparator<Object>public static int getPriority(Object o)
o - the instance, not null.public static int getPriority(Class type)
type - the type, not null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.