com.chargebee.models.enums
Enum CustomerType
java.lang.Object
java.lang.Enum<CustomerType>
com.chargebee.models.enums.CustomerType
- All Implemented Interfaces:
- Serializable, Comparable<CustomerType>
public enum CustomerType
- extends Enum<CustomerType>
|
Method Summary |
static CustomerType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CustomerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
RESIDENTIAL
public static final CustomerType RESIDENTIAL
BUSINESS
public static final CustomerType BUSINESS
SENIOR_CITIZEN
public static final CustomerType SENIOR_CITIZEN
INDUSTRIAL
public static final CustomerType INDUSTRIAL
_UNKNOWN
public static final CustomerType _UNKNOWN
values
public static CustomerType[] 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 (CustomerType c : CustomerType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CustomerType 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 © 2019 ChargeBee. All Rights Reserved.