类 OrderUtils
java.lang.Object
cn.taketoday.core.annotation.OrderUtils
General utility for determining the order of an object based on its type declaration.
Handles
Order annotation as well as Priority.- 从以下版本开始:
- 2018-11-08 19:02
- 作者:
- Stephane Nicoll, Juergen Hoeller, Harry Yang
-
字段概要
字段修饰符和类型字段说明(专用程序包) static final ConcurrentReferenceHashMap<AnnotatedElement,Object> Cache for @Order value (or NOT_ANNOTATED marker) per Class.private static final String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static IntegerfindOrder(MergedAnnotations annotations) static IntegerReturn the order on the specifiedtype.static intReturn the order on the specifiedtype, or the specified default value if none can be found.static IntegerReturn the order on the specifiedtype, or the specified default value if none can be found.static IntegergetOrder(AnnotatedElement element) Return the order declared on the specifiedelement.(专用程序包) static IntegergetOrderFromAnnotations(AnnotatedElement element, MergedAnnotations annotations) Return the order from the specified annotation collection.static intgetOrderOrLowest(Object obj) Get the order of the objectstatic intgetOrderOrLowest(AnnotatedElement annotated) Get the order of theAnnotatedElementstatic IntegergetPriority(Class<?> type) Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.
-
字段详细资料
-
PRIORITY_ANNOTATION
- 另请参阅:
-
orderCache
Cache for @Order value (or NOT_ANNOTATED marker) per Class.
-
-
构造器详细资料
-
OrderUtils
public OrderUtils()
-
-
方法详细资料
-
getOrderOrLowest
Get the order of theAnnotatedElement- 参数:
annotated-AnnotatedElement- 返回:
- The order
-
getOrderOrLowest
Get the order of the object- 参数:
obj- object- 返回:
- The order
-
getOrder
Return the order on the specifiedtype, or the specified default value if none can be found.Takes care of
@Orderand@jakarta.annotation.Priority.- 参数:
type- the type to handle- 返回:
- the priority value, or the specified default order if none can be found
- 另请参阅:
-
getOrder
Return the order on the specifiedtype, or the specified default value if none can be found.Takes care of
@Orderand@jakarta.annotation.Priority.- 参数:
type- the type to handle- 返回:
- the priority value, or the specified default order if none can be found
- 另请参阅:
-
getOrder
Return the order on the specifiedtype.Takes care of
@Orderand@jakarta.annotation.Priority.- 参数:
type- the type to handle- 返回:
- the order value, or
nullif none can be found - 另请参阅:
-
getOrder
Return the order declared on the specifiedelement.Takes care of
@Orderand@jakarta.annotation.Priority.- 参数:
element- the annotated element (e.g. type or method)- 返回:
- the order value, or
nullif none can be found
-
getOrderFromAnnotations
@Nullable static Integer getOrderFromAnnotations(AnnotatedElement element, MergedAnnotations annotations) Return the order from the specified annotation collection.Takes care of
@Orderand@jakarta.annotation.Priority.- 参数:
element- the source elementannotations- the annotation to consider- 返回:
- the order value, or
nullif none can be found
-
findOrder
-
getPriority
Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.- 参数:
type- the type to handle- 返回:
- the priority value if the annotation is declared, or
nullif none
-