Enum DtoMapping.Builder
- All Implemented Interfaces:
Serializable, Comparable<DtoMapping.Builder>
- Enclosing class:
DtoMapping
Target construction strategy - see
DtoMapping.builder().-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways use the detected builder - a codegen-time error if the target has no builder matching the required shape.Use a detected builder when the target has more than a threshold number of properties (default 5), falling back to a positional constructor otherwise.Always use a positional constructor, even when the target has a usable builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic DtoMapping.BuilderReturns the enum constant of this type with the specified name.static DtoMapping.Builder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO
Use a detected builder when the target has more than a threshold number of properties (default 5), falling back to a positional constructor otherwise. -
ALWAYS
Always use the detected builder - a codegen-time error if the target has no builder matching the required shape. -
NEVER
Always use a positional constructor, even when the target has a usable builder.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-