public static enum Department.Status extends java.lang.Enum<Department.Status>
Enum Constant and Description |
---|
AWAY
Department is away
|
OFFLINE
Department is offline
|
ONLINE
Department is online
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Department.Status |
getStatus(java.lang.String value)
Gets the status enum of the value passed as parameter
|
java.lang.String |
getValue()
Gets the value of this status enum
|
static Department.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Department.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Department.Status ONLINE
public static final Department.Status OFFLINE
public static final Department.Status AWAY
public static final Department.Status UNKNOWN
public static Department.Status[] values()
for (Department.Status c : Department.Status.values()) System.out.println(c);
public static Department.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
@NonNull public static Department.Status getStatus(java.lang.String value)
value
- to interpretUNKNOWN
if not found