public enum CardStatus extends java.lang.Enum<CardStatus>
Enum Constant and Description |
---|
ACTIVE
Карта/купон активна
|
BLOCKED
Карта/купон заблокирована
|
INVALID
Карта/купон [более] не валидна.
|
USED
[Только для купонов] Купон уже погашен/использован
|
Modifier and Type | Method and Description |
---|---|
static CardStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardStatus ACTIVE
public static final CardStatus BLOCKED
public static final CardStatus INVALID
public static final CardStatus USED
public static CardStatus[] values()
for (CardStatus c : CardStatus.values()) System.out.println(c);
public static CardStatus 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 null