Module org.apache.wicket.util
Class AbstractDecimalConverter<N extends Number>
java.lang.Object
org.apache.wicket.util.convert.converter.AbstractConverter<N>
org.apache.wicket.util.convert.converter.AbstractNumberConverter<N>
org.apache.wicket.util.convert.converter.AbstractDecimalConverter<N>
- Type Parameters:
N-
- All Implemented Interfaces:
Serializable,IConverter<N>,IClusterable
- Direct Known Subclasses:
BigDecimalConverter,DoubleConverter,FloatConverter
Base class for all converters of decimal numbers.
- Author:
- Jonathan Locke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NumberFormatnewNumberFormat(Locale locale) Creates a newNumberFormatfor the given locale.Methods inherited from class org.apache.wicket.util.convert.converter.AbstractNumberConverter
convertToString, getNumberFormat, parseMethods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
getTargetType, newConversionException, parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.util.convert.IConverter
convertToObject
-
Constructor Details
-
AbstractDecimalConverter
public AbstractDecimalConverter()
-
-
Method Details
-
newNumberFormat
Creates a newNumberFormatfor the given locale. The instance is later cached and is accessible throughAbstractNumberConverter.getNumberFormat(Locale)- Specified by:
newNumberFormatin classAbstractNumberConverter<N extends Number>- Parameters:
locale-- Returns:
- number format
-