| Enum Constant and Description |
|---|
AGE_17_MINUS |
AGE_18_20 |
AGE_21_PLUS |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static AgeRange |
fromMinMax(java.lang.Integer min,
java.lang.Integer max)
Constructs an AgeRange from the min/max age values.
|
java.lang.Integer |
getMax() |
java.lang.Integer |
getMin() |
static AgeRange |
valueOf(java.lang.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 UNKNOWN
public static final AgeRange AGE_17_MINUS
public static final AgeRange AGE_18_20
public static final AgeRange AGE_21_PLUS
public static AgeRange[] values()
for (AgeRange c : AgeRange.values()) System.out.println(c);
public static AgeRange 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 nullpublic static AgeRange fromMinMax(java.lang.Integer min, java.lang.Integer max)
min - The minimum agemax - The maximum agepublic java.lang.Integer getMin()
public java.lang.Integer getMax()