public enum OccupationState extends Enum<OccupationState>
| Modifier and Type | Method and Description |
|---|---|
static OccupationState |
byValue(int value)
Get OccupationState by its value
|
int |
getValue()
Get enumeration value
|
static OccupationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OccupationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OccupationState FREE
public static final OccupationState OCCUPIED
public static final OccupationState PRIORITY
public static final OccupationState LOCAL
public static OccupationState[] values()
for (OccupationState c : OccupationState.values()) System.out.println(c);
public static OccupationState 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 static OccupationState byValue(int value)
public int getValue()
Copyright © 2021. All rights reserved.