public enum CardBrand extends Enum<CardBrand>
| Modifier and Type | Class and Description |
|---|---|
static class |
CardBrand.Adapter |
| Enum Constant and Description |
|---|
AMERICANEXPRESS |
CUP |
DISCOVER |
JCB |
MAESTRO |
MASTERCARD |
OTHER |
UPI |
VISA |
| Modifier and Type | Method and Description |
|---|---|
static CardBrand |
fromValue(String value) |
String |
getValue() |
String |
toString() |
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 MASTERCARD
public static final CardBrand VISA
public static final CardBrand AMERICANEXPRESS
public static final CardBrand MAESTRO
public static final CardBrand JCB
public static final CardBrand CUP
public static final CardBrand UPI
public static final CardBrand DISCOVER
public static final CardBrand OTHER
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 String getValue()
Copyright © 2023. All rights reserved.