public abstract class AbstractNumberFormatFactory extends java.lang.Object implements NumberFormatFactory
NumberFormatFactory
implementations.Constructor and Description |
---|
AbstractNumberFormatFactory() |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getLocale()
The locale to use in formatting number values.
|
java.text.NumberFormat |
getNumberFormat()
Factory method that returns a fully-configured
NumberFormat instance to use to format an object for
display. |
protected abstract java.text.NumberFormat |
getNumberFormat(java.util.Locale locale)
Subclasses should override to create the new NumberFormat instance.
|
void |
setLocale(java.util.Locale locale)
Sets the locale to use in formatting number values.
|
public java.util.Locale getLocale()
LocaleContextHolder.getLocale()
public void setLocale(java.util.Locale locale)
locale
- the localepublic final java.text.NumberFormat getNumberFormat()
NumberFormatFactory
NumberFormat
instance to use to format an object for
display.getNumberFormat
in interface NumberFormatFactory
protected abstract java.text.NumberFormat getNumberFormat(java.util.Locale locale)
locale
- the locale to use