public enum FinancialCardIssuer extends java.lang.Enum<FinancialCardIssuer>
Enum Constant and Description |
---|
AMERICAN_EXPRESS |
CARTE_BLANCH |
DINERS_CLUB |
DISCOVER |
ENROUTE |
JCB |
MASTER_CARD |
UNKNOWN |
VISA |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIssuerName()
Gets the issuer name.
|
java.util.regex.Pattern |
getRegex()
This method gets the regular expression pattern used to match the card
number for this member.
|
java.lang.String |
getRegexString()
Gets the regular expression string.
|
static FinancialCardIssuer |
identifyByCardNumber(java.lang.String number)
This method attempts to identify the issuer of a credit card based on
a credit card number.
|
static FinancialCardIssuer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FinancialCardIssuer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FinancialCardIssuer AMERICAN_EXPRESS
public static final FinancialCardIssuer DINERS_CLUB
public static final FinancialCardIssuer CARTE_BLANCH
public static final FinancialCardIssuer DISCOVER
public static final FinancialCardIssuer ENROUTE
public static final FinancialCardIssuer JCB
public static final FinancialCardIssuer MASTER_CARD
public static final FinancialCardIssuer VISA
public static final FinancialCardIssuer UNKNOWN
public static FinancialCardIssuer[] values()
for (FinancialCardIssuer c : FinancialCardIssuer.values()) System.out.println(c);
public static FinancialCardIssuer valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FinancialCardIssuer identifyByCardNumber(java.lang.String number)
number
- Number to inspect.public java.lang.String getIssuerName()
public java.lang.String getRegexString()
public java.util.regex.Pattern getRegex()