Package com.irurueta.commons.validators
Enum CreditCardNetwork
- java.lang.Object
-
- java.lang.Enum<CreditCardNetwork>
-
- com.irurueta.commons.validators.CreditCardNetwork
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CreditCardNetwork>
public enum CreditCardNetwork extends java.lang.Enum<CreditCardNetwork>
Supported credit card brands.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMERICAN_EXPRESS
American Express.BANKCARD
Bankcard.CHINA_UNIONPAY
China UnionPay.DINERS_CLUB_CARTE_BLANCHE
Diners Club Carte Blanche.DINERS_CLUB_ENROUTE
Diners Club Enroute.DINERS_CLUB_INTERNATIONAL
Diners Club International.DINERS_CLUB_USA_CANADA
Diners Club USA and Canada.DISCOVER
Discover.INSTAPAYMENT
Instapayment.JCB
JCB.LASER
Laser.MAESTRO
Maestro.MASTERCARD
MasterCard.SOLO
Solo.SWITCH
Switch.UNKNOWN
Unknown.VISA
Visa.VISA_ELECTRON
VISA ELECTRON.
-
Constructor Summary
Constructors Modifier Constructor Description private
CreditCardNetwork()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CreditCardNetwork
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CreditCardNetwork[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AMERICAN_EXPRESS
public static final CreditCardNetwork AMERICAN_EXPRESS
American Express.
-
BANKCARD
public static final CreditCardNetwork BANKCARD
Bankcard.
-
CHINA_UNIONPAY
public static final CreditCardNetwork CHINA_UNIONPAY
China UnionPay.
-
DINERS_CLUB_CARTE_BLANCHE
public static final CreditCardNetwork DINERS_CLUB_CARTE_BLANCHE
Diners Club Carte Blanche.
-
DINERS_CLUB_ENROUTE
public static final CreditCardNetwork DINERS_CLUB_ENROUTE
Diners Club Enroute.
-
DINERS_CLUB_INTERNATIONAL
public static final CreditCardNetwork DINERS_CLUB_INTERNATIONAL
Diners Club International.
-
DINERS_CLUB_USA_CANADA
public static final CreditCardNetwork DINERS_CLUB_USA_CANADA
Diners Club USA and Canada.
-
DISCOVER
public static final CreditCardNetwork DISCOVER
Discover.
-
INSTAPAYMENT
public static final CreditCardNetwork INSTAPAYMENT
Instapayment.
-
JCB
public static final CreditCardNetwork JCB
JCB.
-
LASER
public static final CreditCardNetwork LASER
Laser.
-
MAESTRO
public static final CreditCardNetwork MAESTRO
Maestro.
-
MASTERCARD
public static final CreditCardNetwork MASTERCARD
MasterCard.
-
SOLO
public static final CreditCardNetwork SOLO
Solo.
-
SWITCH
public static final CreditCardNetwork SWITCH
Switch.
-
VISA
public static final CreditCardNetwork VISA
Visa.
-
VISA_ELECTRON
public static final CreditCardNetwork VISA_ELECTRON
VISA ELECTRON.
-
UNKNOWN
public static final CreditCardNetwork UNKNOWN
Unknown.
-
-
Method Detail
-
values
public static CreditCardNetwork[] 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 (CreditCardNetwork c : CreditCardNetwork.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreditCardNetwork valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-