public enum AgeRange extends Enum<AgeRange>
Java class for AgeRange.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AgeRange">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Unknown"/>
<enumeration value="EighteenToTwentyFour"/>
<enumeration value="TwentyFiveToThirtyFour"/>
<enumeration value="ThirtyFiveToFourtyNine"/>
<enumeration value="FiftyToSixtyFour"/>
<enumeration value="SixtyFiveAndAbove"/>
</restriction>
</simpleType>
Enum Constant and Description |
---|
EIGHTEEN_TO_TWENTY_FOUR |
FIFTY_TO_SIXTY_FOUR |
SIXTY_FIVE_AND_ABOVE |
THIRTY_FIVE_TO_FOURTY_NINE |
TWENTY_FIVE_TO_THIRTY_FOUR |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static AgeRange |
fromValue(String v) |
String |
value() |
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 EIGHTEEN_TO_TWENTY_FOUR
public static final AgeRange TWENTY_FIVE_TO_THIRTY_FOUR
public static final AgeRange THIRTY_FIVE_TO_FOURTY_NINE
public static final AgeRange FIFTY_TO_SIXTY_FOUR
public static final AgeRange SIXTY_FIVE_AND_ABOVE
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 String value()
Copyright © 2024. All rights reserved.