public static enum CreditCardValidator.CreditCard extends Enum<CreditCardValidator.CreditCard>
Enum Constant and Description |
---|
AMERICAN_EXPRESS |
CHINA_UNIONPAY |
DINERS_CLUB_CARTE_BLANCHE |
DINERS_CLUB_INTERNATIONAL |
DINERS_CLUB_US_AND_CANADA |
DISCOVER_CARD |
INVALID |
JCB |
LASER |
MAESTRO |
MASTERCARD |
SOLO |
SWITCH |
VISA |
VISA_ELECTRON |
Modifier and Type | Method and Description |
---|---|
static CreditCardValidator.CreditCard |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreditCardValidator.CreditCard[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreditCardValidator.CreditCard INVALID
public static final CreditCardValidator.CreditCard AMERICAN_EXPRESS
public static final CreditCardValidator.CreditCard CHINA_UNIONPAY
public static final CreditCardValidator.CreditCard DINERS_CLUB_CARTE_BLANCHE
public static final CreditCardValidator.CreditCard DINERS_CLUB_INTERNATIONAL
public static final CreditCardValidator.CreditCard DINERS_CLUB_US_AND_CANADA
public static final CreditCardValidator.CreditCard DISCOVER_CARD
public static final CreditCardValidator.CreditCard JCB
public static final CreditCardValidator.CreditCard LASER
public static final CreditCardValidator.CreditCard MAESTRO
public static final CreditCardValidator.CreditCard MASTERCARD
public static final CreditCardValidator.CreditCard SOLO
public static final CreditCardValidator.CreditCard SWITCH
public static final CreditCardValidator.CreditCard VISA
public static final CreditCardValidator.CreditCard VISA_ELECTRON
public static CreditCardValidator.CreditCard[] values()
for (CreditCardValidator.CreditCard c : CreditCardValidator.CreditCard.values()) System.out.println(c);
public static CreditCardValidator.CreditCard valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2019 Apache Software Foundation. All rights reserved.