public static enum CreditCard.Type extends java.lang.Enum<CreditCard.Type>
| Enum Constant and Description |
|---|
AMEX |
DINERS |
DISCOVER |
MASTERCARD |
NONE |
VISA |
| Modifier and Type | Method and Description |
|---|---|
static CreditCard.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreditCard.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreditCard.Type AMEX
public static final CreditCard.Type DINERS
public static final CreditCard.Type DISCOVER
public static final CreditCard.Type MASTERCARD
public static final CreditCard.Type VISA
public static final CreditCard.Type NONE
public static CreditCard.Type[] values()
for (CreditCard.Type c : CreditCard.Type.values()) System.out.println(c);
public static CreditCard.Type 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 null