Constructor and Description |
---|
OrderUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
getOrder(java.lang.Class<?> type)
Return the order on the specified
type . |
static int |
getOrder(java.lang.Class<?> type,
int defaultOrder)
Return the order on the specified
type , or the specified
default value if none can be found. |
static java.lang.Integer |
getOrder(java.lang.Class<?> type,
java.lang.Integer defaultOrder)
Return the order on the specified
type , or the specified
default value if none can be found. |
static java.lang.Integer |
getPriority(java.lang.Class<?> type)
Return the value of the
javax.annotation.Priority annotation
declared on the specified type, or null if none. |
public static int getOrder(java.lang.Class<?> type, int defaultOrder)
type
, or the specified
default value if none can be found.
Takes care of @Order
and @javax.annotation.Priority
.
type
- the type to handlegetPriority(Class)
@Nullable public static java.lang.Integer getOrder(java.lang.Class<?> type, @Nullable java.lang.Integer defaultOrder)
type
, or the specified
default value if none can be found.
Takes care of @Order
and @javax.annotation.Priority
.
type
- the type to handlegetPriority(Class)
@Nullable public static java.lang.Integer getOrder(java.lang.Class<?> type)
type
.
Takes care of @Order
and @javax.annotation.Priority
.
type
- the type to handlenull
if none can be foundgetPriority(Class)
@Nullable public static java.lang.Integer getPriority(java.lang.Class<?> type)
javax.annotation.Priority
annotation
declared on the specified type, or null
if none.type
- the type to handlenull
if none