java.io.Serializable, java.lang.Comparable<VoucherType>public enum VoucherType extends java.lang.Enum<VoucherType>
| Enum Constant | Description |
|---|---|
DISCOUNT_VOUCHER |
|
GIFT_VOUCHER |
| Modifier and Type | Method | Description |
|---|---|---|
static VoucherType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static VoucherType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VoucherType DISCOUNT_VOUCHER
public static final VoucherType GIFT_VOUCHER
public static VoucherType[] values()
for (VoucherType c : VoucherType.values()) System.out.println(c);
public static VoucherType 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