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
|
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 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)