Package org.apache.juneau.commons.lang
Enum Class StateEnum
- All Implemented Interfaces:
Serializable,Comparable<StateEnum>,Constable
Enumeration of state machine states for use in parsing operations.
This enum provides a standardized set of state constants (S1 through S50) that can be used in state machine implementations throughout the Juneau codebase. This eliminates the need to declare local int constants and provides better code readability.
Examples:
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionState 1State 10State 11State 12State 13State 14State 15State 16State 17State 18State 19State 2State 20State 21State 22State 23State 24State 25State 26State 27State 28State 29State 3State 30State 31State 32State 33State 34State 35State 36State 37State 38State 39State 4State 40State 41State 42State 43State 44State 45State 46State 47State 48State 49State 5State 50State 6State 7State 8State 9 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrue if the state is any one of the specified states.static StateEnumReturns the enum constant of this class with the specified name.static StateEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
S1
State 1 -
S2
State 2 -
S3
State 3 -
S4
State 4 -
S5
State 5 -
S6
State 6 -
S7
State 7 -
S8
State 8 -
S9
State 9 -
S10
State 10 -
S11
State 11 -
S12
State 12 -
S13
State 13 -
S14
State 14 -
S15
State 15 -
S16
State 16 -
S17
State 17 -
S18
State 18 -
S19
State 19 -
S20
State 20 -
S21
State 21 -
S22
State 22 -
S23
State 23 -
S24
State 24 -
S25
State 25 -
S26
State 26 -
S27
State 27 -
S28
State 28 -
S29
State 29 -
S30
State 30 -
S31
State 31 -
S32
State 32 -
S33
State 33 -
S34
State 34 -
S35
State 35 -
S36
State 36 -
S37
State 37 -
S38
State 38 -
S39
State 39 -
S40
State 40 -
S41
State 41 -
S42
State 42 -
S43
State 43 -
S44
State 44 -
S45
State 45 -
S46
State 46 -
S47
State 47 -
S48
State 48 -
S49
State 49 -
S50
State 50
-
-
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
-
isAny
Returnstrue if the state is any one of the specified states.- Parameters:
states- The states to check.- Returns:
true if the state is any one of the specified states.
-