public static enum Customer.Sex extends java.lang.Enum<Customer.Sex>
| Modifier and Type | Method and Description |
|---|---|
static Customer.Sex |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Customer.Sex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Customer.Sex MALE
public static final Customer.Sex FEMALE
public static Customer.Sex[] values()
for (Customer.Sex c : Customer.Sex.values()) System.out.println(c);
public static Customer.Sex 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 null