Package com.thalesgroup.tpcsdk.model
Enum CardScheme
- java.lang.Object
-
- java.lang.Enum<CardScheme>
-
- com.thalesgroup.tpcsdk.model.CardScheme
-
- All Implemented Interfaces:
Serializable,Comparable<CardScheme>
public enum CardScheme extends Enum<CardScheme>
CardScheme enum defines list of primary card schemes- Since:
- 1.0
- Version:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMEXDISCOVERMASTERCARDPAGOBANCOMATUNSUPPORTEDVISA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetScheme()voidsetScheme(String scheme)static CardSchemevalueOf(String name)Returns the enum constant of this type with the specified name.static CardScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VISA
public static final CardScheme VISA
-
MASTERCARD
public static final CardScheme MASTERCARD
-
PAGOBANCOMAT
public static final CardScheme PAGOBANCOMAT
-
AMEX
public static final CardScheme AMEX
-
DISCOVER
public static final CardScheme DISCOVER
-
UNSUPPORTED
public static final CardScheme UNSUPPORTED
-
-
Method Detail
-
values
public static CardScheme[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CardScheme c : CardScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CardScheme valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getScheme
public String getScheme()
-
setScheme
public void setScheme(String scheme)
-
-