Package javapersianutils.core.number
Enum DigitGroup
- java.lang.Object
-
- java.lang.Enum<DigitGroup>
-
- javapersianutils.core.number.DigitGroup
-
- All Implemented Interfaces:
Serializable,Comparable<DigitGroup>
public enum DigitGroup extends Enum<DigitGroup>
DigitGroup
The DigitGroup- Since:
- 2/15/2020
- Version:
- 1.0
- Author:
- Mahdi Razavi
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DigitGroupvalueOf(String name)Returns the enum constant of this type with the specified name.static DigitGroup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Ones
public static final DigitGroup Ones
-
Teens
public static final DigitGroup Teens
-
Tens
public static final DigitGroup Tens
-
Hundreds
public static final DigitGroup Hundreds
-
Thousands
public static final DigitGroup Thousands
-
-
Method Detail
-
values
public static DigitGroup[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DigitGroup c : DigitGroup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DigitGroup valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-