Class PercentStyleFormatter
java.lang.Object
org.springframework.format.number.AbstractNumberFormatter
org.springframework.format.number.PercentStyleFormatter
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.
- Since:
- 4.2
- Author:
- Keith Donald, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected NumberFormatgetNumberFormat(Locale locale) Obtain a concrete NumberFormat for the specified locale.Methods inherited from class org.springframework.format.number.AbstractNumberFormatterparse, print, setLenient
- 
Constructor Details- 
PercentStyleFormatterpublic PercentStyleFormatter()
 
- 
- 
Method Details- 
getNumberFormatDescription copied from class:AbstractNumberFormatterObtain a concrete NumberFormat for the specified locale.- Specified by:
- getNumberFormatin class- AbstractNumberFormatter
- Parameters:
- locale- the current locale
- Returns:
- the NumberFormat instance (never null)
 
 
-