Annotation Interface NumberFormat


@Target(FIELD) @Retention(RUNTIME) @Inherited public @interface NumberFormat
Convert number format.

write: It can be used on classes that inherit Number

read: It can be used on classes String

  • 元素详细资料

    • value

      String value
      Specific format reference DecimalFormat
      返回:
      Format pattern
      默认值:
      ""
    • roundingMode

      RoundingMode roundingMode
      Rounded by default
      返回:
      RoundingMode
      默认值:
      HALF_UP