public class AnnotationAwareOrderComparator extends OrderComparator
Modifier and Type | Field and Description |
---|---|
static AnnotationAwareOrderComparator |
INSTANCE
Shared default instance of AnnotationAwareOrderComparator.
|
Constructor and Description |
---|
AnnotationAwareOrderComparator() |
Modifier and Type | Method and Description |
---|---|
protected int |
getOrder(java.lang.Object obj)
Determine the order value for the given object.
|
compare, sort, sort
public static AnnotationAwareOrderComparator INSTANCE
protected int getOrder(java.lang.Object obj)
OrderComparator
The default implementation checks against the Ordered
interface. Can be overridden in subclasses.
getOrder
in class OrderComparator
obj
- the object to checkOrdered.LOWEST_PRECEDENCE
as fallback