public enum EmployeeStatus extends Enum<EmployeeStatus>
| Enum Constant and Description |
|---|
DECEASED |
EMPLOYED |
RETIRED |
SUSPENDED |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static EmployeeStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmployeeStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmployeeStatus EMPLOYED
public static final EmployeeStatus RETIRED
public static final EmployeeStatus SUSPENDED
public static final EmployeeStatus DECEASED
public static EmployeeStatus[] values()
for (EmployeeStatus c : EmployeeStatus.values()) System.out.println(c);
public static EmployeeStatus 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 String toString()
toString in class Enum<EmployeeStatus>Copyright © 2015–2017 eGovernments Foundation. All rights reserved.