public enum CreditCardType extends Enum<CreditCardType>
Enum Constant and Description |
---|
AMERICAN_EXPRESS |
DANKORT |
DINERS_CLUB |
DISCOVER |
FORBRUGSFORENINGEN |
JCB |
LASER |
MASTERCARD |
SOLO |
SWITCH |
VISA |
Modifier and Type | Method and Description |
---|---|
static CreditCardType |
valueOf(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.
|
public static final CreditCardType VISA
public static final CreditCardType MASTERCARD
public static final CreditCardType DISCOVER
public static final CreditCardType AMERICAN_EXPRESS
public static final CreditCardType DINERS_CLUB
public static final CreditCardType JCB
public static final CreditCardType SWITCH
public static final CreditCardType SOLO
public static final CreditCardType DANKORT
public static final CreditCardType FORBRUGSFORENINGEN
public static final CreditCardType LASER
public static CreditCardType[] values()
for (CreditCardType c : CreditCardType.values()) System.out.println(c);
public static CreditCardType 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 © 2019. All rights reserved.