Class CurrencyUnitFormatter
- java.lang.Object
- org.springframework.format.number.money.CurrencyUnitFormatter
- All Implemented Interfaces:
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-354CurrencyUnitvalues, from and to currency code Strings.- Since:
- 4.2
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description CurrencyUnitFormatter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.money.CurrencyUnitparse(String text, Locale locale)Parse a text String to produce a T.Stringprint(javax.money.CurrencyUnit object, Locale locale)Print the object of type T for display.
Constructor Detail
CurrencyUnitFormatter
public CurrencyUnitFormatter()
Method Detail
print
public String print(javax.money.CurrencyUnit object, Locale locale)
Description copied from interface:PrinterPrint the object of type T for display.