public enum PurchaseMethod extends Enum<PurchaseMethod>
| Modifier and Type | Class and Description |
|---|---|
static class |
PurchaseMethod.Adapter |
| Enum Constant and Description |
|---|
ECOMMERCE |
INSTORE |
PHONEORDER |
| Modifier and Type | Method and Description |
|---|---|
static PurchaseMethod |
fromValue(String value) |
String |
getValue() |
String |
toString() |
static PurchaseMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PurchaseMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PurchaseMethod INSTORE
public static final PurchaseMethod PHONEORDER
public static final PurchaseMethod ECOMMERCE
public static PurchaseMethod[] values()
for (PurchaseMethod c : PurchaseMethod.values()) System.out.println(c);
public static PurchaseMethod 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 nullpublic String getValue()
public String toString()
toString in class Enum<PurchaseMethod>public static PurchaseMethod fromValue(String value)
Copyright © 2023. All rights reserved.