Annotation Type 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
      java.lang.Class<? extends Converter<?,​?>> value
      The conversion class used to convert the field's value when it is put into/read from a configuration
    • Element Detail

      • value

        java.lang.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