枚举 MergedAnnotation.Adapt
- java.lang.Object
- java.lang.Enum<MergedAnnotation.Adapt>
- org.springframework.core.annotation.MergedAnnotation.Adapt
- 所有已实现的接口:
Serializable
,Comparable<MergedAnnotation.Adapt>
- 封闭接口:
- MergedAnnotation<A extends Annotation>
public static enum MergedAnnotation.Adapt extends Enum<MergedAnnotation.Adapt>
Adaptations that can be applied to attribute values when creating Maps orAnnotationAttributes
.
枚举常量概要
枚举常量 枚举常量 说明 ANNOTATION_TO_MAP
Adapt nested annotation or annotation arrays to maps rather than synthesizing the values.CLASS_TO_STRING
Adapt class or class array attributes to strings.
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected boolean
isIn(MergedAnnotation.Adapt... adaptations)
static MergedAnnotation.Adapt
valueOf(String name)
返回带有指定名称的该类型的枚举常量。static MergedAnnotation.Adapt[]
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。static MergedAnnotation.Adapt[]
values(boolean classToString, boolean annotationsToMap)
Factory method to create anMergedAnnotation.Adapt
array from a set of boolean flags.
枚举常量详细资料
CLASS_TO_STRING
public static final MergedAnnotation.Adapt CLASS_TO_STRING
Adapt class or class array attributes to strings.
ANNOTATION_TO_MAP
public static final MergedAnnotation.Adapt ANNOTATION_TO_MAP
Adapt nested annotation or annotation arrays to maps rather than synthesizing the values.
方法详细资料
values
public static MergedAnnotation.Adapt[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (MergedAnnotation.Adapt c : MergedAnnotation.Adapt.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
valueOf
public static MergedAnnotation.Adapt valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
isIn
protected final boolean isIn(MergedAnnotation.Adapt... adaptations)
values
public static MergedAnnotation.Adapt[] values(boolean classToString, boolean annotationsToMap)
Factory method to create anMergedAnnotation.Adapt
array from a set of boolean flags.- 参数:
classToString
- ifCLASS_TO_STRING
is includedannotationsToMap
- ifANNOTATION_TO_MAP
is included- 返回:
- a new
MergedAnnotation.Adapt
array