public enum LoyaltyUnitType extends Enum<LoyaltyUnitType>
Java class for LoyaltyUnitType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="LoyaltyUnitType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Point"/>
<enumeration value="Monetary"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
MONETARY
The amount is expressed in a monetary value in a currency.
|
POINT
The amount is expressed in point.
|
| Modifier and Type | Method and Description |
|---|---|
static LoyaltyUnitType |
fromValue(String v)
From value loyalty unit type.
|
String |
value()
Value string.
|
static LoyaltyUnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoyaltyUnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoyaltyUnitType POINT
public static final LoyaltyUnitType MONETARY
public static LoyaltyUnitType[] values()
for (LoyaltyUnitType c : LoyaltyUnitType.values()) System.out.println(c);
public static LoyaltyUnitType 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 value()
public static LoyaltyUnitType fromValue(String v)
v - the vCopyright © 2022. All rights reserved.