public enum CardTypeEnum extends Enum<CardTypeEnum>
Java class for cardTypeEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="cardTypeEnum">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Visa"/>
<enumeration value="MasterCard"/>
<enumeration value="AmericanExpress"/>
<enumeration value="Discover"/>
<enumeration value="JCB"/>
<enumeration value="DinersClub"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AMERICAN_EXPRESS |
DINERS_CLUB |
DISCOVER |
JCB |
MASTER_CARD |
VISA |
| Modifier and Type | Method and Description |
|---|---|
static CardTypeEnum |
fromValue(String v) |
String |
value() |
static CardTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CardTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardTypeEnum VISA
public static final CardTypeEnum MASTER_CARD
public static final CardTypeEnum AMERICAN_EXPRESS
public static final CardTypeEnum DISCOVER
public static final CardTypeEnum JCB
public static final CardTypeEnum DINERS_CLUB
public static CardTypeEnum[] values()
for (CardTypeEnum c : CardTypeEnum.values()) System.out.println(c);
public static CardTypeEnum 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 value()
public static CardTypeEnum fromValue(String v)
Copyright © 2016. All Rights Reserved.