public enum AgeEnum extends Enum<AgeEnum>
Java class for AgeEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AgeEnum">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Unknown"/>
<enumeration value="ZeroToTwelve"/>
<enumeration value="ThirteenToSevenTeen"/>
<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 |
THIRTEEN_TO_SEVEN_TEEN |
THIRTY_FIVE_TO_FOURTY_NINE |
TWENTY_FIVE_TO_THIRTY_FOUR |
UNKNOWN |
ZERO_TO_TWELVE |
Modifier and Type | Method and Description |
---|---|
static AgeEnum |
fromValue(String v) |
String |
value() |
static AgeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgeEnum UNKNOWN
public static final AgeEnum ZERO_TO_TWELVE
public static final AgeEnum THIRTEEN_TO_SEVEN_TEEN
public static final AgeEnum EIGHTEEN_TO_TWENTY_FOUR
public static final AgeEnum TWENTY_FIVE_TO_THIRTY_FOUR
public static final AgeEnum THIRTY_FIVE_TO_FOURTY_NINE
public static final AgeEnum FIFTY_TO_SIXTY_FOUR
public static final AgeEnum SIXTY_FIVE_AND_ABOVE
public static AgeEnum[] values()
for (AgeEnum c : AgeEnum.values()) System.out.println(c);
public static AgeEnum 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.