Enum CreditCardType
- java.lang.Object
-
- java.lang.Enum<CreditCardType>
-
- net.andreinc.mockneat.types.enums.CreditCardType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CreditCardType>
public enum CreditCardType extends java.lang.Enum<CreditCardType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetLength()java.util.List<java.util.List<java.lang.Integer>>getPrefixes()static CreditCardTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CreditCardType[]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 CreditCardType AMERICAN_EXPRESS
-
CHINA_UNION_PAY_16
public static final CreditCardType CHINA_UNION_PAY_16
-
CHINA_UNION_PAY_17
public static final CreditCardType CHINA_UNION_PAY_17
-
CHINA_UNION_PAY_18
public static final CreditCardType CHINA_UNION_PAY_18
-
CHINA_UNION_PAY_19
public static final CreditCardType CHINA_UNION_PAY_19
-
DINERS_CLUB_CARTE_BLANCHE
public static final CreditCardType DINERS_CLUB_CARTE_BLANCHE
-
DINERS_CLUB_INTERNATIONAL
public static final CreditCardType DINERS_CLUB_INTERNATIONAL
-
DISCOVER_16
public static final CreditCardType DISCOVER_16
-
DISCOVER_19
public static final CreditCardType DISCOVER_19
-
INTER_PAYMENT_16
public static final CreditCardType INTER_PAYMENT_16
-
INTER_PAYMENT_19
public static final CreditCardType INTER_PAYMENT_19
-
INSTA_PAYMENT
public static final CreditCardType INSTA_PAYMENT
-
JCB
public static final CreditCardType JCB
-
MAESTRO_12
public static final CreditCardType MAESTRO_12
-
MAESTRO_13
public static final CreditCardType MAESTRO_13
-
MAESTRO_14
public static final CreditCardType MAESTRO_14
-
MAESTRO_15
public static final CreditCardType MAESTRO_15
-
MAESTRO_16
public static final CreditCardType MAESTRO_16
-
MAESTRO_17
public static final CreditCardType MAESTRO_17
-
MAESTRO_18
public static final CreditCardType MAESTRO_18
-
MAESTRO_19
public static final CreditCardType MAESTRO_19
-
MASTERCARD
public static final CreditCardType MASTERCARD
-
VISA_13
public static final CreditCardType VISA_13
-
VISA_16
public static final CreditCardType VISA_16
-
VISA_19
public static final CreditCardType VISA_19
-
-
Method Detail
-
values
public static CreditCardType[] 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 (CreditCardType c : CreditCardType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreditCardType 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
-
getPrefixes
public java.util.List<java.util.List<java.lang.Integer>> getPrefixes()
-
getLength
public java.lang.Integer getLength()
-
-