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
  • Field Details

    • MIN_VAL

      public static final int MIN_VAL
      Minimum value incl. to be converted to a Roman numeral
      See Also:
    • MAX_VAL

      public static final int MAX_VAL
      Maximum value incl. to be converted to a Roman numeral
      See Also:
  • Method Details

    • romanStringToInt

      @Nonnegative public static int romanStringToInt(String sRoman)
    • intToRomanString

      @Nonnull public static String intToRomanString(int nValue)