public static enum Employee.GenderEnum extends Enum<Employee.GenderEnum>
| Modifier and Type | Method and Description |
|---|---|
static Employee.GenderEnum |
fromValue(String value) |
String |
getValue() |
String |
toString() |
static Employee.GenderEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Employee.GenderEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Employee.GenderEnum N
public static final Employee.GenderEnum M
public static final Employee.GenderEnum F
public static final Employee.GenderEnum I
public static Employee.GenderEnum[] values()
for (Employee.GenderEnum c : Employee.GenderEnum.values()) System.out.println(c);
public static Employee.GenderEnum 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 getValue()
public String toString()
toString in class Enum<Employee.GenderEnum>public static Employee.GenderEnum fromValue(String value)
Copyright © 2020. All rights reserved.