public enum CellState extends Enum<CellState>
Enum Constant and Description |
---|
EXCLUDED
Tenants cannot be moved in but can be moved out of the cell
|
QUARANTINED
Tenants cannot be moved in and out of the cell
|
READY
Tenants can be moved in and out of the cell
|
UNKNOWN
A cell is never in an UNKNOWN state, but a client can pass a state that is UNKNOWN which fails during validation.
|
Modifier and Type | Field and Description |
---|---|
static Set<CellState> |
VALID_CELL_STATES |
Modifier and Type | Method and Description |
---|---|
byte |
code() |
static CellState |
toEnum(byte code) |
static CellState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CellState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CellState UNKNOWN
public static final CellState READY
public static final CellState QUARANTINED
public static final CellState EXCLUDED
public static CellState[] values()
for (CellState c : CellState.values()) System.out.println(c);
public static CellState 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 byte code()
public static CellState toEnum(byte code)