public final class State extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static State |
UNDEFINED
A type-safe and null-safe undefined state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static State |
getInstance(String name)
Returns the state instance with the given name.
|
String |
getName()
Returns the name of the state.
|
int |
hashCode() |
boolean |
isUndefined()
Returns whether the state represents an undefined state.
|
static State |
nullSafeGetInstance(String name)
Returns the state instance with the given name or null if the name is null.
|
String |
toString() |
public static final State UNDEFINED
public String getName()
public boolean isUndefined()
public static State getInstance(String name)
name
- the name of the statepublic static State nullSafeGetInstance(String name)
name
- the name of the stateCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.