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