org.springframework.format.number.money

## 类 CurrencyUnitFormatter

- java.lang.Object
- - org.springframework.format.number.money.CurrencyUnitFormatter

- 所有已实现的接口:
    Formatter<javax.money.CurrencyUnit>, Parser<javax.money.CurrencyUnit>, Printer<javax.money.CurrencyUnit>

      public class CurrencyUnitFormatter
      extends Object
      implements Formatter<javax.money.CurrencyUnit>

  Formatter for JSR-354 `CurrencyUnit` values, from and to currency code Strings.
  从以下版本开始:
    4.2
  作者:
    Juergen Hoeller

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `javax.money.CurrencyUnit` | `parse(String text, Locale locale)` Parse a text String to produce a T.
    `String` | `print(javax.money.CurrencyUnit object, Locale locale)` Print the object of type T for display.

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

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

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

    - #### CurrencyUnitFormatter

          public CurrencyUnitFormatter()

  - ### 方法详细资料

    - #### print

          public String print(javax.money.CurrencyUnit object,
                              Locale locale)

      从接口复制的说明: `Printer`
      Print the object of type T for display.
      指定者:
        `print` 在接口中 `Printer<javax.money.CurrencyUnit>`
      参数:
        `object` - the instance to print
        `locale` - the current user locale
      返回:
        the printed text string

    - #### parse

          public javax.money.CurrencyUnit parse(String text,
                                                Locale locale)

      从接口复制的说明: `Parser`
      Parse a text String to produce a T.
      指定者:
        `parse` 在接口中 `Parser<javax.money.CurrencyUnit>`
      参数:
        `text` - the text string
        `locale` - the current user locale
      返回:
        an instance of T