Package org.stubit.random
Class DigitSystem
java.lang.Object
org.stubit.random.DigitSystem
Represents a digit system (a list of digits).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DigitSystemThe (western) Arabic digit system.static final DigitSystemThe Chinese digit system.static final DigitSystemThe Eastern Arabic digit system.static final DigitSystemThe Japanese digit system.static final DigitSystemThe Persian digit system.static final DigitSystemThe roman digit system. -
Constructor Summary
ConstructorsConstructorDescriptionDigitSystem(List<Character> digits) Creates a digit system with the provided list of digits. -
Method Summary
-
Field Details
-
ARABIC
The (western) Arabic digit system. -
EASTERN_ARABIC
The Eastern Arabic digit system. -
PERSIAN
The Persian digit system. -
CHINESE
The Chinese digit system. -
JAPANESE
The Japanese digit system. -
ROMAN
The roman digit system.
-
-
Constructor Details
-
DigitSystem
Creates a digit system with the provided list of digits.- Parameters:
digits- the list of digits in this digit system
-
-
Method Details
-
digits
- Returns:
- the list of digit characters in this digit system
-