gnu.text
Class EnglishIntegerFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
gnu.text.EnglishIntegerFormat
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class EnglishIntegerFormat
- extends java.text.NumberFormat
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.text.NumberFormat |
java.text.NumberFormat.Field |
Field Summary |
static java.lang.String[] |
ones
|
static java.lang.String[] |
onesth
|
boolean |
ordinal
|
static java.lang.String[] |
power1000s
|
static java.lang.String[] |
tens
|
static java.lang.String[] |
tensth
|
Fields inherited from class java.text.NumberFormat |
FRACTION_FIELD, INTEGER_FIELD |
Methods inherited from class java.text.NumberFormat |
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly |
Methods inherited from class java.text.Format |
format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ordinal
public boolean ordinal
ones
public static final java.lang.String[] ones
onesth
public static final java.lang.String[] onesth
tens
public static final java.lang.String[] tens
tensth
public static final java.lang.String[] tensth
power1000s
public static final java.lang.String[] power1000s
EnglishIntegerFormat
public EnglishIntegerFormat(boolean ordinal)
getInstance
public static EnglishIntegerFormat getInstance(boolean ordinal)
writeInt
public void writeInt(int value,
Consumer out)
writeLong
public void writeLong(long value,
Consumer out)
writeObject
public void writeObject(java.lang.Object value,
Consumer out)
writeBoolean
public void writeBoolean(boolean value,
Consumer out)
format
public java.lang.StringBuffer format(long num,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
- Specified by:
format
in class java.text.NumberFormat
format
public java.lang.StringBuffer format(double num,
java.lang.StringBuffer sbuf,
java.text.FieldPosition fpos)
- Specified by:
format
in class java.text.NumberFormat
parse
public java.lang.Number parse(java.lang.String text,
java.text.ParsePosition status)
- Specified by:
parse
in class java.text.NumberFormat