public static enum ProductItem.EnumAgeGroup extends Enum<ProductItem.EnumAgeGroup>
Enum Constant and Description |
---|
VALUE_ADULT |
VALUE_ALL_AGES |
VALUE_INFANT |
VALUE_KIDS |
VALUE_NEWBORN |
VALUE_TEEN |
VALUE_TODDLER |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static ProductItem.EnumAgeGroup |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProductItem.EnumAgeGroup[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProductItem.EnumAgeGroup VALUE_ADULT
public static final ProductItem.EnumAgeGroup VALUE_ALL_AGES
public static final ProductItem.EnumAgeGroup VALUE_INFANT
public static final ProductItem.EnumAgeGroup VALUE_KIDS
public static final ProductItem.EnumAgeGroup VALUE_NEWBORN
public static final ProductItem.EnumAgeGroup VALUE_TEEN
public static final ProductItem.EnumAgeGroup VALUE_TODDLER
public static ProductItem.EnumAgeGroup[] values()
for (ProductItem.EnumAgeGroup c : ProductItem.EnumAgeGroup.values()) System.out.println(c);
public static ProductItem.EnumAgeGroup 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 toString()
toString
in class Enum<ProductItem.EnumAgeGroup>
Copyright © 2020. All rights reserved.