Enum CreditCardValidator.CreditCard
- java.lang.Object
-
- java.lang.Enum<CreditCardValidator.CreditCard>
-
- org.apache.wicket.validation.validator.CreditCardValidator.CreditCard
-
- All Implemented Interfaces:
Serializable
,Comparable<CreditCardValidator.CreditCard>
- Enclosing class:
- CreditCardValidator
public static enum CreditCardValidator.CreditCard extends Enum<CreditCardValidator.CreditCard>
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
INVALID
public static final CreditCardValidator.CreditCard INVALID
-
AMERICAN_EXPRESS
public static final CreditCardValidator.CreditCard AMERICAN_EXPRESS
-
CHINA_UNIONPAY
public static final CreditCardValidator.CreditCard CHINA_UNIONPAY
-
DINERS_CLUB_CARTE_BLANCHE
public static final CreditCardValidator.CreditCard DINERS_CLUB_CARTE_BLANCHE
-
DINERS_CLUB_INTERNATIONAL
public static final CreditCardValidator.CreditCard DINERS_CLUB_INTERNATIONAL
-
DINERS_CLUB_US_AND_CANADA
public static final CreditCardValidator.CreditCard DINERS_CLUB_US_AND_CANADA
-
DISCOVER_CARD
public static final CreditCardValidator.CreditCard DISCOVER_CARD
-
JCB
public static final CreditCardValidator.CreditCard JCB
-
LASER
public static final CreditCardValidator.CreditCard LASER
-
MAESTRO
public static final CreditCardValidator.CreditCard MAESTRO
-
MASTERCARD
public static final CreditCardValidator.CreditCard MASTERCARD
-
SOLO
public static final CreditCardValidator.CreditCard SOLO
-
SWITCH
public static final CreditCardValidator.CreditCard SWITCH
-
VISA
public static final CreditCardValidator.CreditCard VISA
-
VISA_ELECTRON
public static final CreditCardValidator.CreditCard VISA_ELECTRON
-
-
Method Detail
-
values
public static CreditCardValidator.CreditCard[] 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 (CreditCardValidator.CreditCard c : CreditCardValidator.CreditCard.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreditCardValidator.CreditCard 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 nameNullPointerException
- if the argument is null
-
-