public enum CreditCardType extends Enum<CreditCardType> implements Serializable
Enum Constant and Description |
---|
AMEX |
DINERSCLUB_CARTEBLANCHE |
DISCOVER |
ENROUTE |
JCB |
MASTERCARD |
VISA |
Modifier and Type | Method and Description |
---|---|
String |
getFriendlyName() |
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 MASTERCARD
public static final CreditCardType VISA
public static final CreditCardType DISCOVER
public static final CreditCardType AMEX
public static final CreditCardType DINERSCLUB_CARTEBLANCHE
public static final CreditCardType ENROUTE
public static final CreditCardType JCB
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 nullpublic String getFriendlyName()
Copyright © 2021. All rights reserved.