Annotation Type Converter


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface Converter
    The converter is used to change the value/type from original object to a destiny object. Just Methods and Fields can be annotated.
    Since:
    0.6.0
    Author:
    Alisson Gomes
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class converter
      Specifies the converter to be used.
      Converter.EnumType isEnum
      the enum type ORDINAL or STRING
      String pattern
      The pattern describing to be used to define or formatter a value.
    • Element Detail

      • converter

        Class converter
        Specifies the converter to be used.
        Returns:
        void.class as default
        Default:
        void.class
      • pattern

        String pattern
        The pattern describing to be used to define or formatter a value.
        Returns:
        empty pattern as default
        Default:
        ""
      • isEnum

        Converter.EnumType isEnum
        the enum type ORDINAL or STRING
        Returns:
        EnumType.NONE as default
        Default:
        net.sf.jkniv.whinstone.types.Converter.EnumType.NONE