public enum NumberFormat extends java.lang.Enum<NumberFormat>
| Enum Constant and Description |
|---|
COMMA_AS_DECIMAL |
PERIOD_AS_DECIMAL |
| Modifier and Type | Method and Description |
|---|---|
static NumberFormat |
fromDecimalSeparator(char decimalSeparator)
Returns the format for the given decimal separator, or throws
IllegalArgumentException if there's no
match |
char |
getDecimalSeparator() |
char |
getGroupingSeparator() |
static NumberFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NumberFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberFormat COMMA_AS_DECIMAL
public static final NumberFormat PERIOD_AS_DECIMAL
public static NumberFormat[] values()
for (NumberFormat c : NumberFormat.values()) System.out.println(c);
public static NumberFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static NumberFormat fromDecimalSeparator(char decimalSeparator)
IllegalArgumentException if there's no
matchpublic char getDecimalSeparator()
public char getGroupingSeparator()