public class NumberFormatter extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Method |
isLetterOrDigitMethod |
static boolean |
methodInitialized |
| 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.
|
static int |
getDigitValue(int in)
Determine whether a character represents a digit and if so, which digit.
|
void |
prepare(String format)
Tokenize the format pattern.
|
public static boolean methodInitialized
public static Method isLetterOrDigitMethod
public void prepare(String format)
format - the format specification. Contains one of the following values:public static int getDigitValue(int in)
in - the Unicode character being tested. It's known that this is alphanumeric.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)