Annotation Type JsonbNumberFormat



  • @JsonbAnnotation
    @Retention(RUNTIME)
    @Target({ANNOTATION_TYPE,FIELD,METHOD,TYPE,PARAMETER,PACKAGE})
    public @interface JsonbNumberFormat

    Annotation provides way how to set custom number format to field or JavaBean property.

    The pattern format is specified in DecimalFormat

    Usage

    The @JsonbNumberFormat annotation can be used with the following program elements:

    • field
    • getter/setter
    • type
    • parameter
    • package
    Since:
    JSON Binding 1.0
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String DEFAULT_LOCALE
      Value that indicates that default Locale.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String locale
      Custom Locale to use.
      java.lang.String value
      Specifies the number pattern to use.
    • Field Detail

      • DEFAULT_LOCALE

        static final java.lang.String DEFAULT_LOCALE
        Value that indicates that default Locale.
    • Element Detail

      • value

        java.lang.String value
        Specifies the number pattern to use.
        Returns:
        Number pattern to use.
        Default:
        ""
      • locale

        java.lang.String locale
        Custom Locale to use.
        Returns:
        Custom locale to use.
        Default:
        "##default"