Package com.helger.commons.string.util
Class RomanNumeral
java.lang.Object
com.helger.commons.string.util.RomanNumeral
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
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringintToRomanString(int nValue) static intromanStringToInt(String sRoman)
-
Field Details
-
MIN_VAL
public static final int MIN_VALMinimum value incl. to be converted to a Roman numeral- See Also:
-
MAX_VAL
public static final int MAX_VALMaximum value incl. to be converted to a Roman numeral- See Also:
-
-
Method Details
-
romanStringToInt
-
intToRomanString
-