public enum ActiveState extends Enum<ActiveState>
Enum Constant and Description |
---|
ACTIVE
An order state representing Active
|
INACTIVE
An order state represneting Inactive
|
Modifier and Type | Method and Description |
---|---|
static ActiveState |
forName(String stateName)
Returns the enum that matches the string passed in
|
String |
getName()
Returns the String name of the enum
|
static ActiveState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActiveState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActiveState ACTIVE
public static final ActiveState INACTIVE
public static ActiveState[] values()
for (ActiveState c : ActiveState.values()) System.out.println(c);
public static ActiveState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public static ActiveState forName(String stateName)
stateName
- The name of the ActiveState enumCopyright © 2015 Caplin Systems.