public class DiscountType extends Object implements HybrisEnumValue
| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static DiscountType |
ABSOLUTE
Generated enum value for DiscountType.ABSOLUTE declared at extension commerceservices.
|
static DiscountType |
PERCENT
Generated enum value for DiscountType.PERCENT declared at extension commerceservices.
|
static String |
SIMPLE_CLASSNAME
Generated simple class name constant.
|
static DiscountType |
TARGET
Generated enum value for DiscountType.TARGET declared at extension commerceservices.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this object to the specified object.
|
String |
getCode()
Gets the code of this enum value.
|
String |
getType()
Gets the type this enum value belongs to.
|
int |
hashCode()
Returns a hash code for this
DiscountType. |
String |
toString()
Returns the code representing this enum value.
|
static DiscountType |
valueOf(String code)
Returns a DiscountType instance representing the specified enum value.
|
public static final String _TYPECODE
public static final String SIMPLE_CLASSNAME
public static final DiscountType PERCENT
public static final DiscountType ABSOLUTE
public static final DiscountType TARGET
public boolean equals(Object obj)
true
if and only if the argument is not null and is an DiscountType
object that contains the enum value code as this object.public String getCode()
getCode in interface HybrisEnumValuepublic String getType()
getType in interface HybrisEnumValuepublic int hashCode()
DiscountType.public String toString()
public static DiscountType valueOf(String code)
code - an enum valueCopyright © 2017 SAP SE. All Rights Reserved.