public enum ReceiptRequest extends java.lang.Enum<ReceiptRequest>
| Enum Constant and Description |
|---|
NO_RECEIPT
No Receipt needed
|
RECEIPT_WANTED
Receipt Needed
|
| Modifier and Type | Method and Description |
|---|---|
int |
getReceiptOption() |
static ReceiptRequest |
instanceFromValue(int receipt) |
static ReceiptRequest |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReceiptRequest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReceiptRequest NO_RECEIPT
public static final ReceiptRequest RECEIPT_WANTED
public static ReceiptRequest[] values()
for (ReceiptRequest c : ReceiptRequest.values()) System.out.println(c);
public static ReceiptRequest 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 nullpublic static ReceiptRequest instanceFromValue(int receipt) throws MessageException
MessageExceptionpublic int getReceiptOption()