Enum Class TopUpPreset
- All Implemented Interfaces:
Serializable,Comparable<TopUpPreset>,Constable
Supported top up presets which determine top up prefix and USSD code length.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor top ups which begin with *103* and USSD code length is 14For top ups which begin with *123* prefix and USSD code length is 14For top ups which begin with *131* and USSD code length is 13For top ups with any prefix and USSD code length from interval[13, 16] -
Method Summary
Modifier and TypeMethodDescriptionstatic TopUpPresetReturns the enum constant of this class with the specified name.static TopUpPreset[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP_UP_PRESET_123
For top ups which begin with *123* prefix and USSD code length is 14 -
TOP_UP_PRESET_103
For top ups which begin with *103* and USSD code length is 14 -
TOP_UP_PRESET_131
For top ups which begin with *131* and USSD code length is 13 -
TOP_UP_PRESET_GENERIC
For top ups with any prefix and USSD code length from interval[13, 16]
-
-
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
-