public enum AgeRange extends Enum<AgeRange>
| Enum Constant and Description |
|---|
AGE_13_17 |
AGE_18_20 |
AGE_21_PLUS |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static AgeRange |
fromMinMax(Integer min,
Integer max)
Constructs an AgeRange from the min/max age values.
|
Integer |
getMax() |
Integer |
getMin() |
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 UNKNOWN
public static final AgeRange AGE_13_17
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(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 Integer getMin()
public Integer getMax()