public enum AgeRange extends Enum<AgeRange>
Enum Constant and Description |
---|
AGE_0_9 |
AGE_10_14 |
AGE_15_19 |
AGE_20_29 |
AGE_30_39 |
AGE_40_49 |
AGE_50_59 |
AGE_60_69 |
AGE_70_79 |
AGE_80_89 |
AGE_90_ABOVE |
AGE_RANGE_UNKNOWN
Used when wrong age range is provided.
|
Modifier and Type | Method and Description |
---|---|
static AgeRange |
getRange(String value) |
String |
getValue() |
static AgeRange |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgeRange[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgeRange AGE_0_9
public static final AgeRange AGE_10_14
public static final AgeRange AGE_15_19
public static final AgeRange AGE_20_29
public static final AgeRange AGE_30_39
public static final AgeRange AGE_40_49
public static final AgeRange AGE_50_59
public static final AgeRange AGE_60_69
public static final AgeRange AGE_70_79
public static final AgeRange AGE_80_89
public static final AgeRange AGE_90_ABOVE
public static final AgeRange AGE_RANGE_UNKNOWN
public String getValue()
public static AgeRange 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 static AgeRange[] values()
for (AgeRange c : AgeRange.values()) System.out.println(c);