Class DigitSystem

java.lang.Object
org.stubit.random.DigitSystem

@NullMarked public class DigitSystem extends Object
Represents a digit system (a list of digits).
  • Field Details

    • ARABIC

      public static final DigitSystem ARABIC
      The (western) Arabic digit system.
    • EASTERN_ARABIC

      public static final DigitSystem EASTERN_ARABIC
      The Eastern Arabic digit system.
    • PERSIAN

      public static final DigitSystem PERSIAN
      The Persian digit system.
    • CHINESE

      public static final DigitSystem CHINESE
      The Chinese digit system.
    • JAPANESE

      public static final DigitSystem JAPANESE
      The Japanese digit system.
    • ROMAN

      public static final DigitSystem ROMAN
      The roman digit system.
  • Constructor Details

    • DigitSystem

      public DigitSystem(List<Character> digits)
      Creates a digit system with the provided list of digits.
      Parameters:
      digits - the list of digits in this digit system
  • Method Details

    • digits

      public List<Character> digits()
      Returns:
      the list of digit characters in this digit system