public enum CardBrandEnum extends Enum<CardBrandEnum>
Enum Constant and Description |
---|
AMERICAN_EXPRESS |
AURA |
DINERS_CLUB |
DISCOVER |
ELO |
HIPERCARD |
JCB |
MASTERCARD |
VISA |
Modifier and Type | Method and Description |
---|---|
static CardBrandEnum |
fromValue(String value) |
static List<CardBrandEnum> |
getAll() |
String |
getValue() |
static CardBrandEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CardBrandEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardBrandEnum VISA
public static final CardBrandEnum MASTERCARD
public static final CardBrandEnum AMERICAN_EXPRESS
public static final CardBrandEnum ELO
public static final CardBrandEnum AURA
public static final CardBrandEnum JCB
public static final CardBrandEnum DINERS_CLUB
public static final CardBrandEnum DISCOVER
public static final CardBrandEnum HIPERCARD
public static CardBrandEnum[] values()
for (CardBrandEnum c : CardBrandEnum.values()) System.out.println(c);
public static CardBrandEnum 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 getValue()
public static CardBrandEnum fromValue(String value)
public static List<CardBrandEnum> getAll()
Copyright © 2018. All rights reserved.