public enum NumeralStyle extends java.lang.Enum<NumeralStyle>
| Enum Constant and Description |
|---|
ALPHA
Defines alpha numeral style, alias of UPPER_ALPHA
|
DECIMAL
Defines a decimal numeral style
|
DECIMAL_LEADING_ZERO
Defines a number with a single leading zero if the number is < 10 (01, 02, 03, etc.)
|
DEFAULT
Defines default numeral style, alias of DECIMAL
|
LOWER_ALPHA
Defines lower alpha numeral style
|
LOWER_ROMAN
Defines lower roman numeral style
|
ROMAN
Defines roman numeral style, alias of UPPER_ROMAN
|
UPPER_ALPHA
Defines upper alpha numeral style
|
UPPER_ROMAN
Defines upper roman numeral style
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(int i)
Formats the numeral with the given style
|
static NumeralStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NumeralStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumeralStyle DEFAULT
public static final NumeralStyle DECIMAL
public static final NumeralStyle DECIMAL_LEADING_ZERO
public static final NumeralStyle ROMAN
public static final NumeralStyle UPPER_ROMAN
public static final NumeralStyle LOWER_ROMAN
public static final NumeralStyle ALPHA
public static final NumeralStyle UPPER_ALPHA
public static final NumeralStyle LOWER_ALPHA
public static NumeralStyle[] values()
for (NumeralStyle c : NumeralStyle.values()) System.out.println(c);
public static NumeralStyle 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 java.lang.String format(int i)
i - the number