public class NumberFormatter extends Object implements Serializable
| Constructor and Description |
|---|
NumberFormatter() |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
format(List numbers,
int groupSize,
String groupSeparator,
String letterValue,
String ordinal,
Numberer numberer)
Format a list of numbers.
|
void |
prepare(String format)
Tokenize the format pattern.
|
public void prepare(String format)
format - the format specification. Contains one of the following values:public CharSequence format(List numbers, int groupSize, String groupSeparator, String letterValue, String ordinal, Numberer numberer)
numbers - the numbers to be formatted (a sequence of integer values; it may also contain
preformatted strings as part of the error recovery fallback)