Class 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 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

      • intToRomanString

        @Nonnull
        public static String intToRomanString​(int nValue)