public enum Recipient extends Enum<Recipient>
Specifies the recipient of a receipt.
The following values are valid:
Specification: retail.
Enum Constant and Description |
---|
BOTH
The datum is intended for the cardholder and the merchant.
|
CARDHOLDER
The datum is intended for the cardholder.
|
MERCHANT
The datum is intended for the merchant.
|
Modifier and Type | Method and Description |
---|---|
static Recipient |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Recipient[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Recipient MERCHANT
The datum is intended for the merchant.
Specification: retail.
public static final Recipient CARDHOLDER
The datum is intended for the cardholder.
Specification: retail.
public static final Recipient BOTH
The datum is intended for the cardholder and the merchant.
Specification: retail.
public static Recipient[] values()
for (Recipient c : Recipient.values()) System.out.println(c);
public static Recipient 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 null