java.io.Serializable
public class NumberFormatter
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
static java.lang.reflect.Method |
isLetterOrDigitMethod |
|
static boolean |
methodInitialized |
Constructor | Description |
---|---|
NumberFormatter() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.CharSequence |
format(java.util.List numbers,
int groupSize,
java.lang.String groupSeparator,
java.lang.String letterValue,
java.lang.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(java.lang.String format) |
Tokenize the format pattern.
|
public static boolean methodInitialized
public static java.lang.reflect.Method isLetterOrDigitMethod
public void prepare(java.lang.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 java.lang.CharSequence format(java.util.List numbers, int groupSize, java.lang.String groupSeparator, java.lang.String letterValue, java.lang.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)