Top Description Constructors Methods
org.springframework.format.number.money

public Class CurrencyUnitFormatter

extends Object
implements Formatter<CurrencyUnit>
Class Inheritance
All Implemented Interfaces
org.springframework.format.Formatter, org.springframework.format.Parser, org.springframework.format.Printer
Imports
java.util.Locale, javax.money.CurrencyUnit, .Monetary, org.springframework.format.Formatter

Formatter for JSR-354 javax.money.CurrencyUnit values, from and to currency code Strings.
Author
Juergen Hoeller
Since
4.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CurrencyUnit
parse(String
the text string
text
,
Locale
the current user locale
locale
)

Implements org.springframework.format.Parser.parse.

Parse a text String to produce a T.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CurrencyUnitFormatterback to summary
public CurrencyUnitFormatter()

Method Detail

parseback to summary
public CurrencyUnit parse(String text, Locale locale)

Implements org.springframework.format.Parser.parse.

Doc from org.springframework.format.Parser.parse.

Parse a text String to produce a T.

Parameters
text:String

the text string

locale:Locale

the current user locale

Returns:CurrencyUnit

an instance of T

Annotations
@Override