public enum MaritalStatus extends Enum<MaritalStatus>
Enum Constant and Description |
---|
MARRIED |
NOT_APPLICABLE |
SINGLE |
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 MARRIED
public static final MaritalStatus SINGLE
public static final MaritalStatus NOT_APPLICABLE
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 © 2010–2016. All rights reserved.