public static class XmlToPdf.RomanNumber
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static java.util.LinkedHashMap<java.lang.String,java.lang.Integer> |
__map
A map of roman numerals and decimal integers.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
RomanNumber() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.StringBuilder |
repeat(java.lang.String s,
int n)
Handles appending repetitive consecutive occurrences of the same
roman numeral letter to the converted result.
|
static java.lang.String |
toRoman(int n)
Converts a decimal integer to a roman numeral.
|
private static final long serialVersionUID
private static final java.util.LinkedHashMap<java.lang.String,java.lang.Integer> __map
public static final java.lang.String toRoman(int n)
n
- (int) The number to convert.private static final java.lang.StringBuilder repeat(java.lang.String s, int n)
s
- (String) The repeating roman numeral letter.n
- (int) The number of repeating occurrences.