public enum PaymentMethod extends Enum<PaymentMethod>
| Enum Constant and Description |
|---|
BANK_TRANSFER |
CASH |
CREDIT_CARD |
DEBIT_CARD |
| Modifier and Type | Method and Description |
|---|---|
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 BANK_TRANSFER
public static final PaymentMethod CASH
public static final PaymentMethod CREDIT_CARD
public static final PaymentMethod DEBIT_CARD
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 nullCopyright © 2020. All rights reserved.