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.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Conversion>
    A user provided implementation of Conversion which will be instantiated using the arguments provided by args()
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The arguments to use when invoking the constructor of the class given by conversionClass().
  • Element Details

    • conversionClass

      Class<? extends Conversion> conversionClass
      A user provided implementation of Conversion which will be instantiated using the arguments provided by args()
      Returns:
      custom class used to convert values
    • args

      String[] args
      The arguments to use when invoking the constructor of the class given by conversionClass().
      Returns:
      list of arguments create a new instance of the custom conversion class.
      Default:
      {}