Enum CardVerification
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CardVerification>
public enum CardVerification extends java.lang.Enum<CardVerification>
Enum Constant Summary
Enum Constant and Description |
---|
REAL_AMOUNT_DEBIT |
ZERO_AMOUNT_DEBIT |
Method Summary
Modifier and Type | Method and Description |
---|---|
static CardVerification |
forCode(int code) |
int |
getValue() |
static CardVerification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardVerification[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail
ZERO_AMOUNT_DEBIT
public static final CardVerification ZERO_AMOUNT_DEBIT
REAL_AMOUNT_DEBIT
public static final CardVerification REAL_AMOUNT_DEBIT
Method Detail
values
public static CardVerification[] values()
for (CardVerification c : CardVerification.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static CardVerification valueOf(java.lang.String name)
- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
getValue
public int getValue()
forCode
public static CardVerification forCode(int code)