org.springframework.format.number

## 类 PercentStyleFormatter

- java.lang.Object
- - org.springframework.format.number.AbstractNumberFormatter
  - - org.springframework.format.number.PercentStyleFormatter

- 所有已实现的接口:
    Formatter<Number>, Parser<Number>, Printer<Number>

      public class PercentStyleFormatter
      extends AbstractNumberFormatter

  A formatter for number values in percent style.

  Delegates to `NumberFormat.getPercentInstance(Locale)`. Configures BigDecimal parsing so there is no loss in precision. The `AbstractNumberFormatter.parse(String, Locale)` routine always returns a BigDecimal.

  从以下版本开始:
    4.2
  作者:
    Keith Donald, Juergen Hoeller
  另请参阅:
    `AbstractNumberFormatter.setLenient(boolean)`

- - ### 构造器概要

    构造器
    构造器和说明
    `PercentStyleFormatter()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected NumberFormat` | `getNumberFormat(Locale locale)` Obtain a concrete NumberFormat for the specified locale.

    - ### 从类继承的方法 org.springframework.format.number.AbstractNumberFormatter

      `parse, print, setLenient`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### PercentStyleFormatter

          public PercentStyleFormatter()

  - ### 方法详细资料

    - #### getNumberFormat

          protected NumberFormat getNumberFormat(Locale locale)

      从类复制的说明: `AbstractNumberFormatter`
      Obtain a concrete NumberFormat for the specified locale.
      指定者:
        `getNumberFormat` 在类中 `AbstractNumberFormatter`
      参数:
        `locale` - the current locale
      返回:
        the NumberFormat instance (never `null`)