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.- Since:
- 5.2
- Author:
- Phillip Webb, Juergen Hoeller, Sam Brannen
- 
Nested Class SummaryNested classes/interfaces inherited from class EnumEnum.EnumDesc<E>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAdapt nested annotation or annotation arrays to maps rather than synthesizing the values.Adapt class or class array attributes to strings.
- 
Method SummaryModifier and TypeMethodDescriptionprotected final booleanisIn(MergedAnnotation.Adapt... adaptations) static MergedAnnotation.AdaptReturns 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.Adaptarray from a set of boolean flags.
- 
Enum Constant Details- 
CLASS_TO_STRINGAdapt class or class array attributes to strings.
- 
ANNOTATION_TO_MAPAdapt nested annotation or annotation arrays to maps rather than synthesizing the values.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
isIn
- 
valuesFactory method to create anMergedAnnotation.Adaptarray from a set of boolean flags.- Parameters:
- classToString- if- CLASS_TO_STRINGis included
- annotationsToMap- if- ANNOTATION_TO_MAPis included
- Returns:
- a new MergedAnnotation.Adaptarray
 
 
-