Annotation Interface Convert
Assigns a custom implementation of
Conversion
to be executed (Conversion.execute(Object)
)
when writing to the field and reverted (Conversion.revert(Object)
) when reading from the field.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends Conversion>
A user provided implementation ofConversion
which will be instantiated using the arguments provided byargs()
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
The arguments to use when invoking the constructor of the class given byconversionClass()
.
-
Element Details
-
conversionClass
Class<? extends Conversion> conversionClassA user provided implementation ofConversion
which will be instantiated using the arguments provided byargs()
- Returns:
- custom class used to convert values
-
-
-
args
String[] argsThe arguments to use when invoking the constructor of the class given byconversionClass()
.- Returns:
- list of arguments create a new instance of the custom conversion class.
- Default:
- {}
-