Package co.crystaldev.alpinecore.util
Class RomanNumerals
java.lang.Object
co.crystaldev.alpinecore.util.RomanNumerals
Utility for converting strings to and from roman numerals.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
convertFrom
(@NotNull String number) Convert roman numerals to its numeric representation.static @NotNull String
convertTo
(int number) Convert a number to its roman numeral representation.
-
Constructor Details
-
RomanNumerals
public RomanNumerals()
-
-
Method Details
-
convertTo
Convert a number to its roman numeral representation.- Parameters:
number
- the number- Returns:
- the roman numeral representation
-
convertFrom
Convert roman numerals to its numeric representation.- Parameters:
number
- the roman numerals- Returns:
- the numeric representation
-