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