Package com.landawn.abacus.util
Enum Class Percentage
- All Implemented Interfaces:
Serializable
,Comparable<Percentage>
,Constable
The Enum Percentage.
- Since:
- 0.8
- Author:
- Haiyang Li
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe 0 0001.The 0 001.The 0 01.The 0 1.The 1.The 10.The 2.The 20.The 3.The 30.The 4.The 40.The 5.The 50.The 6.The 60.The 7.The 70.The 8.The 80.The 9.The 90.The 91.The 92.The 93.The 94.The 95.The 96.The 97.The 98.The 99.The 99 9.The 99 99.The 99 999.The 99 9999. -
Method Summary
Modifier and TypeMethodDescriptiondouble
static ImmutableSet<Percentage>
range
(Percentage startInclusive, Percentage endExclusive) static ImmutableSet<Percentage>
range
(Percentage startInclusive, Percentage endExclusive, Percentage by) static ImmutableSet<Percentage>
rangeClosed
(Percentage startInclusive, Percentage endInclusive) static ImmutableSet<Percentage>
rangeClosed
(Percentage startInclusive, Percentage endInclusive, Percentage by) toString()
static Percentage
Returns the enum constant of this class with the specified name.static Percentage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
_0_0001
The 0 0001. -
_0_001
The 0 001. -
_0_01
The 0 01. -
_0_1
The 0 1. -
_1
The 1. -
_2
The 2. -
_3
The 3. -
_4
The 4. -
_5
The 5. -
_6
The 6. -
_7
The 7. -
_8
The 8. -
_9
The 9. -
_10
The 10. -
_20
The 20. -
_30
The 30. -
_40
The 40. -
_50
The 50. -
_60
The 60. -
_70
The 70. -
_80
The 80. -
_90
The 90. -
_91
The 91. -
_92
The 92. -
_93
The 93. -
_94
The 94. -
_95
The 95. -
_96
The 96. -
_97
The 97. -
_98
The 98. -
_99
The 99. -
_99_9
The 99 9. -
_99_99
The 99 99. -
_99_999
The 99 999. -
_99_9999
The 99 9999.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
range
- Parameters:
startInclusive
-endExclusive
-- Returns:
-
range
public static ImmutableSet<Percentage> range(Percentage startInclusive, Percentage endExclusive, Percentage by) - Parameters:
startInclusive
-endExclusive
-by
-- Returns:
-
rangeClosed
public static ImmutableSet<Percentage> rangeClosed(Percentage startInclusive, Percentage endInclusive) - Parameters:
startInclusive
-endInclusive
-- Returns:
-
rangeClosed
public static ImmutableSet<Percentage> rangeClosed(Percentage startInclusive, Percentage endInclusive, Percentage by) - Parameters:
startInclusive
-endInclusive
-by
-- Returns:
-
doubleValue
public double doubleValue() -
toString
- Overrides:
toString
in classEnum<Percentage>
-