public enum CreditCardBrand extends java.lang.Enum<CreditCardBrand>
| Enum Constant and Description |
|---|
AMEX |
DINERS |
DISCOVERY |
HIPERCARD |
JCB |
MASTERCARD |
UNKNOWN |
VISA |
| Modifier and Type | Method and Description |
|---|---|
static CreditCardBrand |
fromDescription(java.lang.String description) |
java.lang.String |
getDescription() |
void |
setDescription(java.lang.String description) |
java.lang.String |
toString() |
static CreditCardBrand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreditCardBrand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreditCardBrand UNKNOWN
public static final CreditCardBrand VISA
public static final CreditCardBrand MASTERCARD
public static final CreditCardBrand AMEX
public static final CreditCardBrand HIPERCARD
public static final CreditCardBrand DINERS
public static final CreditCardBrand DISCOVERY
public static final CreditCardBrand JCB
public static CreditCardBrand[] values()
for (CreditCardBrand c : CreditCardBrand.values()) System.out.println(c);
public static CreditCardBrand 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 nullpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
public static CreditCardBrand fromDescription(java.lang.String description)
public java.lang.String toString()
toString in class java.lang.Enum<CreditCardBrand>