NumberFormat class.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public NumberFormat | Returns: a compact number formatterthe desired locale locale, NumberFormat.the style for formatting a number formatStyleReturns a new |
| public abstract NumberFormat | Returns: a currency formatterthe desired locale. locale)Returns a new |
| public abstract NumberFormat | Returns: a number format for integer valuesthe desired locale locale)Returns a new |
| public abstract NumberFormat | Returns: a general-purpose number formatterthe desired locale locale)Returns a new general-purpose |
| public abstract NumberFormat | Returns: a percent formatterthe desired locale locale)Returns a new |
| NumberFormatProvider | back to summary |
|---|---|
| protected NumberFormatProvider() Sole constructor. (For invocation by subclass constructors, typically implicit.) | |
| getCompactNumberInstance | back to summary |
|---|---|
| public NumberFormat getCompactNumberInstance(Locale locale, NumberFormat. Returns a new Implementation Specification The default implementation of this method throws
| |
| getCurrencyInstance | back to summary |
|---|---|
| public abstract NumberFormat getCurrencyInstance(Locale locale) Returns a new
| |
| getIntegerInstance | back to summary |
|---|---|
| public abstract NumberFormat getIntegerInstance(Locale locale) Returns a new
| |
| getNumberInstance | back to summary |
|---|---|
| public abstract NumberFormat getNumberInstance(Locale locale) Returns a new general-purpose
| |
| getPercentInstance | back to summary |
|---|---|
| public abstract NumberFormat getPercentInstance(Locale locale) Returns a new
| |