Fields
| Name | Description |
|---|---|
| FRACTION_FIELD | Field constant used to construct a FieldPosition object. |
| INTEGER_FIELD | Field constant used to construct a FieldPosition object. |
Constructors
| Name | Description |
|---|---|
| NumberFormat() |
Methods
| Name | Description |
|---|---|
| clone() | Overrides Cloneable |
| equals(Object) | Overrides equals |
| format(double) | Specialization of format. |
| format(double, StringBuffer, FieldPosition) | Specialization of format. |
| format(long) | Specialization of format. |
| format(long, StringBuffer, FieldPosition) | Specialization of format. |
| format(Object, StringBuffer, FieldPosition) | Formats an object to produce a string. |
| getAvailableLocales() | Get the set of Locales for which NumberFormats are installed |
| getCurrencyInstance() | Returns a currency format for the current default locale. |
| getCurrencyInstance(Locale) | Returns a currency format for the specified locale. |
| getInstance() | Returns the default number format for the current default locale. |
| getInstance(Locale) | Returns the default number format for the specified locale. |
| getMaximumFractionDigits() | Returns the maximum number of digits allowed in the fraction portion of a number. |
| getMaximumIntegerDigits() | Returns the maximum number of digits allowed in the integer portion of a number. |
| getMinimumFractionDigits() | Returns the minimum number of digits allowed in the fraction portion of a number. |
| getMinimumIntegerDigits() | Returns the minimum number of digits allowed in the integer portion of a number. |
| getNumberInstance() | Returns a general-purpose number format for the current default locale. |
| getNumberInstance(Locale) | Returns a general-purpose number format for the specified locale. |
| getPercentInstance() | Returns a percentage format for the current default locale. |
| getPercentInstance(Locale) | Returns a percentage format for the specified locale. |
| hashCode() | Overrides hashCode |
| isGroupingUsed() | Returns true if grouping is used in this format. |
| isParseIntegerOnly() | Returns true if this format will parse numbers as integers only. |
| parse(String) | Convenience method. |
| parse(String, ParsePosition) | Returns a Long if possible (e.g. |
| parseObject(String, ParsePosition) | Parses a string to produce an object. |
| setGroupingUsed(boolean) | Set whether or not grouping will be used in this format. |
| setMaximumFractionDigits(int) | Sets the maximum number of digits allowed in the fraction portion of a number. |
| setMaximumIntegerDigits(int) | Sets the maximum number of digits allowed in the integer portion of a number. |
| setMinimumFractionDigits(int) | Sets the minimum number of digits allowed in the fraction portion of a number. |
| setMinimumIntegerDigits(int) | Sets the minimum number of digits allowed in the integer portion of a number. |
| setParseIntegerOnly(boolean) | Sets whether or not numbers should be parsed as integers only. |