Enum Entitlement.EntitlementState
- java.lang.Object
-
- java.lang.Enum<Entitlement.EntitlementState>
-
- org.killbill.billing.entitlement.api.Entitlement.EntitlementState
-
- All Implemented Interfaces:
Serializable,Comparable<Entitlement.EntitlementState>
- Enclosing interface:
- Entitlement
public static enum Entitlement.EntitlementState extends Enum<Entitlement.EntitlementState>
Possible states of anEntitlement
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Entitlement.EntitlementStatevalueOf(String name)Returns the enum constant of this type with the specified name.static Entitlement.EntitlementState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final Entitlement.EntitlementState PENDING
-
ACTIVE
public static final Entitlement.EntitlementState ACTIVE
-
BLOCKED
public static final Entitlement.EntitlementState BLOCKED
-
CANCELLED
public static final Entitlement.EntitlementState CANCELLED
-
EXPIRED
public static final Entitlement.EntitlementState EXPIRED
-
-
Method Detail
-
values
public static Entitlement.EntitlementState[] 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 (Entitlement.EntitlementState c : Entitlement.EntitlementState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Entitlement.EntitlementState 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 nameNullPointerException- if the argument is null
-
-