Package ca.phon.app.formatter
Class NumberFormatter
java.lang.Object
ca.phon.app.formatter.NumberFormatter
@FormatterType(java.lang.Number.class)
public class NumberFormatter
extends Object
implements Formatter<Number>
-
Field Details
-
MIN_PRECISION
-
DEFAULT_MIN_PRECISION
public final int DEFAULT_MIN_PRECISION- See Also:
-
MAX_PRECISION
-
DEFAULT_MAX_PRECISION
public final int DEFAULT_MAX_PRECISION- See Also:
-
-
Constructor Details
-
NumberFormatter
public NumberFormatter()
-
-
Method Details
-
format
Description copied from interface:Formatter
Convert the given object into a formatted String. -
parse
Description copied from interface:Formatter
Parse the given string into a new object instance- Specified by:
parse
in interfaceFormatter<Number>
- Returns:
- parsed object
- Throws:
ParseException
- if there was a problem parsing the given text
-