Interface NumericFormatter
-
- All Known Implementing Classes:
BigDecimalNumericFormatter,BigIntegerNumericFormatter,BigTypesFormatter,NumericFormatterImpl
public interface NumericFormatter
Interface for defining the basic parse and toClient operations. The typical implementation is based onNumberFormatbut alternate implementations are used for BigInteger and BigDecimal.- Since:
- 5.1.0.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Numberparse(java.lang.String clientValue)Parses a value from the client in a locale-specific way.java.lang.StringtoClient(java.lang.Number value)Formats a value for the client in a locale-specific way.
-
-
-
Method Detail
-
parse
java.lang.Number parse(java.lang.String clientValue) throws java.text.ParseException
Parses a value from the client in a locale-specific way.- Throws:
java.text.ParseException
-
toClient
java.lang.String toClient(java.lang.Number value)
Formats a value for the client in a locale-specific way.
-
-