public enum PaymentMethod extends Enum<PaymentMethod>
Enum Constant and Description |
---|
CASH |
COMPANY_PAYMENT_CARD |
PERSONAL_PAYMENT_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 CASH
public static final PaymentMethod COMPANY_PAYMENT_CARD
public static final PaymentMethod PERSONAL_PAYMENT_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 © 2010–2016. All rights reserved.