Package com.github.javafaker
Enum CreditCardType
- java.lang.Object
-
- java.lang.Enum<CreditCardType>
-
- com.github.javafaker.CreditCardType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CreditCardType>
public enum CreditCardType extends java.lang.Enum<CreditCardType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMERICAN_EXPRESSDANKORTDINERS_CLUBDISCOVERFORBRUGSFORENINGENJCBLASERMASTERCARDSOLOSWITCHVISA
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
VISA
public static final CreditCardType VISA
-
MASTERCARD
public static final CreditCardType MASTERCARD
-
DISCOVER
public static final CreditCardType DISCOVER
-
AMERICAN_EXPRESS
public static final CreditCardType AMERICAN_EXPRESS
-
DINERS_CLUB
public static final CreditCardType DINERS_CLUB
-
JCB
public static final CreditCardType JCB
-
SWITCH
public static final CreditCardType SWITCH
-
SOLO
public static final CreditCardType SOLO
-
DANKORT
public static final CreditCardType DANKORT
-
FORBRUGSFORENINGEN
public static final CreditCardType FORBRUGSFORENINGEN
-
LASER
public static final CreditCardType LASER
-
-
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
-
-