Package com.helger.commons.string.util
Class RomanNumeral
- java.lang.Object
-
- com.helger.commons.string.util.RomanNumeral
-
@Immutable public final class RomanNumeral extends Object
An object of type RomanNumeral is an integer between 1 and 3999. It can be constructed either from an integer or from a string that represents a Roman numeral in this range. The function toString() will return a standardized Roman numeral representation of the number. The function toInt() will return the number as a value of type int.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringintToRomanString(int nValue)static intromanStringToInt(String sRoman)
-
-
-
Field Detail
-
MIN_VAL
public static final int MIN_VAL
Minimum value incl. to be converted to a Roman numeral- See Also:
- Constant Field Values
-
MAX_VAL
public static final int MAX_VAL
Maximum value incl. to be converted to a Roman numeral- See Also:
- Constant Field Values
-
-
Method Detail
-
romanStringToInt
@Nonnegative public static int romanStringToInt(String sRoman)
-
-