Annotation Interface Conversion


@Retention(RUNTIME) @Target(FIELD) public @interface Conversion
Indicates that the value of the field must be converted with the specified converter class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Converter<?,?>>
    The conversion class used to convert the field's value when it is put into/read from a configuration
  • Element Details

    • value

      Class<? extends Converter<?,?>> value
      The conversion class used to convert the field's value when it is put into/read from a configuration
      Returns:
      the conversion class