public static enum Card.Brand extends java.lang.Enum<Card.Brand>
Card
.Enum Constant and Description |
---|
AMERICAN_EXPRESS |
CHINA_UNIONPAY |
DISCOVER |
DISCOVER_DINERS |
EFTPOS |
FELICA |
INTERAC |
JCB |
MASTERCARD |
OTHER_BRAND |
SQUARE_GIFT_CARD |
VISA |
Modifier and Type | Method and Description |
---|---|
static Card.Brand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Card.Brand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Card.Brand VISA
public static final Card.Brand MASTERCARD
public static final Card.Brand AMERICAN_EXPRESS
public static final Card.Brand DISCOVER
public static final Card.Brand DISCOVER_DINERS
public static final Card.Brand INTERAC
public static final Card.Brand JCB
public static final Card.Brand CHINA_UNIONPAY
public static final Card.Brand SQUARE_GIFT_CARD
public static final Card.Brand EFTPOS
public static final Card.Brand FELICA
public static final Card.Brand OTHER_BRAND
public static Card.Brand[] values()
for (Card.Brand c : Card.Brand.values()) System.out.println(c);
public static Card.Brand 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