public enum PaymentStatus extends java.lang.Enum<PaymentStatus>
Enum Constant and Description |
---|
ERROR
Payment failed for some reason.
|
SUCCESS
Payment processed successfully.
|
UNKNOWN
Payment status unknown.
|
Modifier and Type | Method and Description |
---|---|
static PaymentStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaymentStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentStatus UNKNOWN
public static final PaymentStatus SUCCESS
public static final PaymentStatus ERROR
public static PaymentStatus[] values()
for (PaymentStatus c : PaymentStatus.values()) System.out.println(c);
public static PaymentStatus 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