public enum PaymentMethod extends Enum<PaymentMethod>
| Enum Constant and Description |
|---|
CREDIT_CARD |
E_CHECK |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
getMethod() |
static PaymentMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentMethod CREDIT_CARD
public static final PaymentMethod E_CHECK
public static final PaymentMethod UNKNOWN
public static PaymentMethod[] values()
for (PaymentMethod c : PaymentMethod.values()) System.out.println(c);
public static PaymentMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getMethod()
Copyright © 2016. All Rights Reserved.