Enum Class MergedAnnotation.Adapt
- All Implemented Interfaces:
Serializable
,Comparable<MergedAnnotation.Adapt>
,Constable
- Enclosing interface:
- MergedAnnotation<A extends Annotation>
Adaptations that can be applied to attribute values when creating
Maps or
AnnotationAttributes
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdapt nested annotation or annotation arrays to maps rather than synthesizing the values.Adapt class or class array attributes to strings. -
Method Summary
Modifier and TypeMethodDescriptionprotected final boolean
isIn
(MergedAnnotation.Adapt... adaptations) static MergedAnnotation.Adapt
Returns the enum constant of this class with the specified name.static MergedAnnotation.Adapt[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static MergedAnnotation.Adapt[]
values
(boolean classToString, boolean annotationsToMap) Factory method to create anMergedAnnotation.Adapt
array from a set of boolean flags.
-
Enum Constant Details
-
CLASS_TO_STRING
Adapt class or class array attributes to strings. -
ANNOTATION_TO_MAP
Adapt nested annotation or annotation arrays to maps rather than synthesizing the values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isIn
-
values
Factory method to create anMergedAnnotation.Adapt
array from a set of boolean flags.- Parameters:
classToString
- ifCLASS_TO_STRING
is includedannotationsToMap
- ifANNOTATION_TO_MAP
is included- Returns:
- a new
MergedAnnotation.Adapt
array
-