Class DiscountType
java.lang.Object
de.hybris.platform.commerceservices.enums.DiscountType
- All Implemented Interfaces:
HybrisEnumValue,Serializable
Generated enum DiscountType declared at extension commerceservices.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final DiscountTypeGenerated enum value for DiscountType.ABSOLUTE declared at extension commerceservices.static final DiscountTypeGenerated enum value for DiscountType.PERCENT declared at extension commerceservices.static final StringGenerated simple class name constant.static final DiscountTypeGenerated enum value for DiscountType.TARGET declared at extension commerceservices. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this object to the specified object.getCode()Gets the code of this enum value.getType()Gets the type this enum value belongs to.inthashCode()Returns a hash code for thisDiscountType.toString()Returns the code representing this enum value.static DiscountTypeReturns a DiscountType instance representing the specified enum value.
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
SIMPLE_CLASSNAME
Generated simple class name constant.- See Also:
-
PERCENT
Generated enum value for DiscountType.PERCENT declared at extension commerceservices. -
ABSOLUTE
Generated enum value for DiscountType.ABSOLUTE declared at extension commerceservices. -
TARGET
Generated enum value for DiscountType.TARGET declared at extension commerceservices.
-
-
Method Details
-
equals
Compares this object to the specified object. The result istrueif and only if the argument is notnulland is anDiscountTypeobject that contains the enum valuecodeas this object. -
getCode
Gets the code of this enum value.- Specified by:
getCodein interfaceHybrisEnumValue- Returns:
- code of value
-
getType
Gets the type this enum value belongs to.- Specified by:
getTypein interfaceHybrisEnumValue- Returns:
- code of type
-
hashCode
public int hashCode()Returns a hash code for thisDiscountType. -
toString
Returns the code representing this enum value. -
valueOf
Returns a DiscountType instance representing the specified enum value.- Parameters:
code- an enum value- Returns:
- a DiscountType instance representing value.
-