Package epam.roman
Class RomanToArabicConverter
java.lang.Object
epam.roman.RomanToArabicConverter
- All Implemented Interfaces:
ToIntFunction<String>
A converter that converts Roman numerals to Arabic integers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintapplyAsInt(String roman) Converts a Roman numeral string to an Arabic integer.
-
Constructor Details
-
RomanToArabicConverter
public RomanToArabicConverter()
-
-
Method Details
-
applyAsInt
Converts a Roman numeral string to an Arabic integer.- Specified by:
applyAsIntin interfaceToIntFunction<String>- Parameters:
roman- the Roman numeral string to be converted- Returns:
- the Arabic integer representation of the Roman numeral
-