public enum CardBrand extends Enum<CardBrand> implements IStringConstant
| Enum Constant and Description |
|---|
AmericanExpress |
Discover |
Interac |
JCB |
Mastercard |
UnionPay |
Unknown |
Visa |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getValue() |
static CardBrand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CardBrand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardBrand Unknown
public static final CardBrand Mastercard
public static final CardBrand Visa
public static final CardBrand AmericanExpress
public static final CardBrand Discover
public static final CardBrand JCB
public static final CardBrand Interac
public static final CardBrand UnionPay
public static CardBrand[] values()
for (CardBrand c : CardBrand.values()) System.out.println(c);
public static CardBrand 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 byte[] getBytes()
getBytes in interface IStringConstantpublic String getValue()
getValue in interface IStringConstantCopyright © 2024. All rights reserved.