Class RomanNumeral

    • Constructor Summary

      Constructors 
      Constructor Description
      RomanNumeral​(int i)  
      RomanNumeral​(java.lang.String lexicalForm)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String asRomanNumerals​(int i)  
      static java.lang.String i2r​(int i)  
      int intValue()  
      static boolean isValid​(java.lang.String lex)  
      static int parse​(java.lang.String lex)  
      static int r2i​(java.lang.String lex)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RomanNumeral

        public RomanNumeral​(java.lang.String lexicalForm)
      • RomanNumeral

        public RomanNumeral​(int i)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • intValue

        public int intValue()
      • isValid

        public static boolean isValid​(java.lang.String lex)
      • parse

        public static int parse​(java.lang.String lex)
      • r2i

        public static int r2i​(java.lang.String lex)
      • asRomanNumerals

        public static java.lang.String asRomanNumerals​(int i)
      • i2r

        public static java.lang.String i2r​(int i)