public enum RomanNumberLiterals extends Enum<RomanNumberLiterals>
| Enum Constant and Description |
|---|
C |
D |
I |
II |
III |
IV |
IX |
L |
M |
V |
VI |
VII |
VIII |
X |
XI |
XII |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
LETTERS
Array of Roman number literals.
|
static int[] |
NUMBERS
Array to convert numbers.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
INTEGER_2_ROMAN(int number)
Converts an integer into a Roman number.
|
static RomanNumberLiterals[] |
ROMAN_2_ENUM(String roman)
Converts a string of Roman literals into an array of enumerates for further character conversion.
|
static String |
toAscii(int number)
Returns a Roman literal representation of the given number using ASCII-7 upper case characters.
|
static String |
toAsciiLC(int number)
Returns a Roman literal representation of the given number using ASCII-7 lower case characters.
|
static String |
toCircledLatinCaptial(int number)
Returns a Roman literal representation of the given number using UTF Circled Latin Captial (upper case) characters.
|
static String |
toCircledLatinSmall(int number)
Returns a Roman literal representation of the given number using UTF Circled Latin Small (lower case) characters.
|
static String |
toNumberForms(int number)
Returns a Roman literal representation of the given number using UTF Number Forms upper case characters.
|
static String |
toNumberFormsLC(int number)
Returns a Roman literal representation of the given number using UTF Number Forms lower case characters.
|
static RomanNumberLiterals |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RomanNumberLiterals[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RomanNumberLiterals I
public static final RomanNumberLiterals II
public static final RomanNumberLiterals III
public static final RomanNumberLiterals IV
public static final RomanNumberLiterals V
public static final RomanNumberLiterals VI
public static final RomanNumberLiterals VII
public static final RomanNumberLiterals VIII
public static final RomanNumberLiterals IX
public static final RomanNumberLiterals X
public static final RomanNumberLiterals XI
public static final RomanNumberLiterals XII
public static final RomanNumberLiterals L
public static final RomanNumberLiterals C
public static final RomanNumberLiterals D
public static final RomanNumberLiterals M
public static final int[] NUMBERS
public static final String[] LETTERS
public static RomanNumberLiterals[] values()
for (RomanNumberLiterals c : RomanNumberLiterals.values()) System.out.println(c);
public static RomanNumberLiterals valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static final String INTEGER_2_ROMAN(int number)
number - integer to be convertedNotImplementedException - if the number is smaller than 1 or greater than 3999public static final RomanNumberLiterals[] ROMAN_2_ENUM(String roman)
roman - string with Roman literalspublic static final String toAscii(int number)
number - to convertINTEGER_2_ROMAN(int) for requirements in the numberNotImplementedException - see {link INTEGER_2_ROMAN(int)public static final String toAsciiLC(int number)
number - to convertINTEGER_2_ROMAN(int) for requirements in the numberNotImplementedException - see {link INTEGER_2_ROMAN(int)public static final String toNumberForms(int number)
number - to convertINTEGER_2_ROMAN(int) for requirements in the numberNotImplementedException - see {link INTEGER_2_ROMAN(int)public static final String toNumberFormsLC(int number)
number - to convertINTEGER_2_ROMAN(int) for requirements in the numberNotImplementedException - see {link INTEGER_2_ROMAN(int)public static final String toCircledLatinCaptial(int number)
number - to convertINTEGER_2_ROMAN(int) for requirements in the numberNotImplementedException - see {link INTEGER_2_ROMAN(int)public static final String toCircledLatinSmall(int number)
number - to convertINTEGER_2_ROMAN(int) for requirements in the numberNotImplementedException - see {link INTEGER_2_ROMAN(int)Copyright © 2015–2016. All rights reserved.