public enum CardBrand extends Enum<CardBrand>
| Enum Constant and Description |
|---|
AmericanExpress |
DinersClub |
Discover |
JCB |
MasterCard |
unknown |
Visa |
| Modifier and Type | Method and Description |
|---|---|
static CardBrand |
from(String accountNumber) |
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 Visa
public static final CardBrand MasterCard
public static final CardBrand AmericanExpress
public static final CardBrand DinersClub
public static final CardBrand Discover
public static final CardBrand JCB
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 nullCopyright © 2014 Sualeh Fatehi. All rights reserved.