public static enum Product.Type extends java.lang.Enum<Product.Type>
Enum Constant and Description |
---|
CONSUMABLE |
FREE_SUBSCRIPTION |
NON_CONSUMABLE |
NON_RENEWABLE_SUBSCRIPTION |
RENEWABLE_SUBSCRIPTION |
Modifier and Type | Method and Description |
---|---|
static Product.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Product.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Product.Type CONSUMABLE
public static final Product.Type NON_CONSUMABLE
public static final Product.Type RENEWABLE_SUBSCRIPTION
public static final Product.Type NON_RENEWABLE_SUBSCRIPTION
public static final Product.Type FREE_SUBSCRIPTION
public static Product.Type[] values()
for (Product.Type c : Product.Type.values()) System.out.println(c);
public static Product.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null