Annotation 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
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Custom Locale to use.
    Specifies the number pattern to use.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Value that indicates that default Locale.
  • Field Details

  • Element Details

    • value

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

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