 |
static Locale[] getAvailableLocales()
 |
Returns the array of possible NumberFormat locales. |
|
 |
static NumberFormat getCurrencyInstance()
 |
Returns a default currency NumberFormat for the default locale. |
|
 |
static NumberFormat getCurrencyInstance(Locale l)
 |
Returns a default currency NumberFormat for the locale l. |
|
 |
static NumberFormat getInstance()
 |
Returns a default NumberFormat for the default locale. |
|
 |
static NumberFormat getInstance(Locale l)
 |
Returns a default NumberFormat for locale l. |
|
 |
static NumberFormat getIntegerInstance()
 |
Returns a default integer NumberFormat for the default locale. |
|
 |
static NumberFormat getIntegerInstance(Locale l)
 |
Returns a default integer NumberFormat for locale l. |
|
 |
static NumberFormatgetNumberInstance()
 |
Returns a default number NumberFormat for the default locale.
|
|
 |
static NumberFormat getNumberInstance(Locale l)
 |
Returns a default number NumberFormat for locale l. |
|
 |
static NumberFormat getPercentInstance()
 |
Returns a default percentage NumberFormat for the default locale. |
|
 |
static NumberFormat getPercentInstance(Locale l)
 |
Returns a default percentage NumberFormat for locale l. |
|
 |
Object clone()
 |
Returns a clone of this NumberFormat. |
|
 |
boolean equals(Object v)
 |
Returns true if and only if v is an instance of NumberFormat representing the
same format value that this object represents. |
|
 |
String format(double n)
 |
Formats number n into a string using this NumberFormat. |
|
 |
abstract StringBuffer format(double n, StringBuffer s, FieldPosition f)
 |
Returns s after formatting number n into string s using this NumberFormat. If f
indicates a field, then its indices are updated to reflect the position of the
field within s. |
|
 |
String format(long n)
 |
Formats number n into a string using this NumberFormat. |
|
 |
abstract StringBuffer format(long n, StringBuffer s, FieldPosition f)
 |
Returns s after formatting number n into string s using this NumberFormat. If f
indicates a field, then its indices are updated to reflect the position of the
field within s. |
|
 |
StringBuffer format(Object n, StringBuffer s, FieldPosition f)
 |
Returns s after formatting the number represented by n into string s using this NumberFormat. If f indicates a field, then its indices are updated to reflect
the position of the field within s. |
|
 |
Currency getCurrency()
 |
Returns the currency format used by this NumberFormat. |
|
 |
int getMaximumFractionDigits()
 |
Returns the maximum number of digits used in formatting the fractional part of a
number by this NumberFormat. |
|
 |
int getMaximumIntegerDigits()
 |
Returns the maximum number of digits used in formatting the integer part of a
number by this NumberFormat. |
|
 |
int getMinimumFractionDigits()
 |
Returns the minimum number of digits used in formatting the fractional part of a
number by this NumberFormat. |
|
 |
int getMinimumIntegerDigits()
 |
Returns the minimum number of digits used in formatting the integer part of a
number by this NumberFormat. |
|
 |
int hashCode()
 |
Returns the hash code of this NumberFormat. |
|
 |
boolean isGroupingUsed()
 |
Returns whether this NumberFormat uses grouping. |
|
 |
boolean isParseIntegerOnly()
 |
Returns whether this NumberFormat only parses numbers as integers. |
|
 |
Number parse(String s)
 |
Parses s to produce a number using this DateFormat. |
|
 |
abstract Number parse(String s, ParsePosition i)
 |
Parses s to produce a Number using this NumberFormat. The parsing starts with
the parse position indicated by i. Upon completion of parsing, i reflects the
last parsed position. The preferred actual type is Long. If Long is unsuitable,
then Double is used. |
|
 |
Object parseObject(String s, ParsePosition i)
 |
Parses s to produce a Number using this NumberFormat. The parsing starts with
the parse position indicated by i. Upon completion of parsing, i reflects the
last parsed position. |
|
 |
void setCurrency(Currency c)
 |
Sets to c the Currency used by this NumberFormat. |
|
 |
void setGroupingUsed(boolean b)
 |
Sets whether this NumberFormat uses grouping. |
|
 |
void setMaximumFractionDigits(int n)
 |
Sets to n the maximum number of digits used in formatting the fractional part of
a number by this NumberFormat. |
|
 |
void setMaximumIntegerDigits(int n)
 |
Sets to n the maximum number of digits used in formatting the integer part of a
number by this NumberFormat. |
|
 |
void setMinimumFractionDigits(int n)
 |
Sets to n the minimum number of digits used in formatting the fractional part of
a number by this NumberFormat. |
|
 |
void setMinimumIntegerDigits(int n)
 |
Sets to n the minimum number of digits used in formatting the integer part of a
number by this NumberFormat. |
|
 |
void setParseIntegerOnly(boolean b)
 |
Sets whether this NumberFormat parses numbers only as integers.
|
|