public enum AgeCode extends Enum<AgeCode>
Enum Constant and Description |
---|
EIGHTEEN_TO_TWENTY_FIVE |
FORTY_SIX_TO_FIFTY_FIVE |
OVER_FIFTY_FIVE |
THIRTY_SIX_TO_FORTY_FIVE |
TWENTY_SIX_TO_THIRTY_FIVE |
UNDER_SEVENTEEN |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static AgeCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgeCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgeCode EIGHTEEN_TO_TWENTY_FIVE
public static final AgeCode TWENTY_SIX_TO_THIRTY_FIVE
public static final AgeCode THIRTY_SIX_TO_FORTY_FIVE
public static final AgeCode FORTY_SIX_TO_FIFTY_FIVE
public static final AgeCode OVER_FIFTY_FIVE
public static final AgeCode UNKNOWN
public static final AgeCode UNDER_SEVENTEEN
public static AgeCode[] values()
for (AgeCode c : AgeCode.values()) System.out.println(c);
public static AgeCode 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 nullCopyright © 2010–2016. All rights reserved.