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, sortpublic static AnnotationAwareOrderComparator INSTANCE
protected int getOrder(java.lang.Object obj)
OrderComparatorThe default implementation checks against the Ordered
interface. Can be overridden in subclasses.
getOrder in class OrderComparatorobj - the object to checkOrdered.LOWEST_PRECEDENCE as fallback