Class RomanNumerals

java.lang.Object
co.crystaldev.alpinecore.util.RomanNumerals

public final class RomanNumerals extends Object
Utility for converting strings to and from roman numerals.
Since:
0.1.0
See Also:
  • Constructor Details

    • RomanNumerals

      public RomanNumerals()
  • Method Details

    • convertTo

      @NotNull public static @NotNull String convertTo(int number)
      Convert a number to its roman numeral representation.
      Parameters:
      number - the number
      Returns:
      the roman numeral representation
    • convertFrom

      public static int convertFrom(@NotNull @NotNull String number)
      Convert roman numerals to its numeric representation.
      Parameters:
      number - the roman numerals
      Returns:
      the numeric representation