public class CardinalNumberFormat
extends java.text.NumberFormat
Constructor and Description |
---|
CardinalNumberFormat() |
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats a floating point number into a string that matches the format
for this formatter.
|
java.lang.StringBuffer |
format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats an integer into a string that matches the format for this
formatter.
|
java.lang.Number |
parse(java.lang.String source,
java.text.ParsePosition pos)
Parse the text into a number.
|
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode
public java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.NumberFormat
number
- the double valuetoAppendTo
- the StringBuffer to append topos
- the field positionpublic java.lang.StringBuffer format(long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.NumberFormat
number
- the integer valuetoAppendTo
- the StringBuffer to append topos
- the field positionpublic java.lang.Number parse(java.lang.String source, java.text.ParsePosition pos)
parse
in class java.text.NumberFormat
source
- The text to translatepos
- the parse position