com.chargebee.models
Enum Coupon.Status
java.lang.Object
java.lang.Enum<Coupon.Status>
com.chargebee.models.Coupon.Status
- All Implemented Interfaces:
- Serializable, Comparable<Coupon.Status>
- Enclosing class:
- Coupon
public static enum Coupon.Status
- extends Enum<Coupon.Status>
|
Method Summary |
static Coupon.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Coupon.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ACTIVE
public static final Coupon.Status ACTIVE
EXPIRED
public static final Coupon.Status EXPIRED
ARCHIVED
public static final Coupon.Status ARCHIVED
_UNKNOWN
public static final Coupon.Status _UNKNOWN
values
public static Coupon.Status[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Coupon.Status c : Coupon.Status.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Coupon.Status valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2015 ChargeBee. All Rights Reserved.