public static enum Coupon.Duration extends Enum<Coupon.Duration>
| Enum Constant and Description |
|---|
forever |
single_use |
temporal |
| Modifier and Type | Method and Description |
|---|---|
static Coupon.Duration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Coupon.Duration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coupon.Duration forever
public static final Coupon.Duration single_use
public static final Coupon.Duration temporal
public static Coupon.Duration[] values()
for (Coupon.Duration c : Coupon.Duration.values()) System.out.println(c);
public static Coupon.Duration 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 © 2012-2020. All Rights Reserved.