Class DiscountType
- java.lang.Object
-
- de.hybris.platform.commerceservices.enums.DiscountType
-
- All Implemented Interfaces:
HybrisEnumValue,java.io.Serializable
public class DiscountType extends java.lang.Object implements HybrisEnumValue
Generated enum DiscountType declared at extension commerceservices.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static DiscountTypeABSOLUTEGenerated enum value for DiscountType.ABSOLUTE declared at extension commerceservices.static DiscountTypePERCENTGenerated enum value for DiscountType.PERCENT declared at extension commerceservices.static java.lang.StringSIMPLE_CLASSNAMEGenerated simple class name constant.static DiscountTypeTARGETGenerated enum value for DiscountType.TARGET declared at extension commerceservices.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares this object to the specified object.java.lang.StringgetCode()Gets the code of this enum value.java.lang.StringgetType()Gets the type this enum value belongs to.inthashCode()Returns a hash code for thisDiscountType.java.lang.StringtoString()Returns the code representing this enum value.static DiscountTypevalueOf(java.lang.String code)Returns a DiscountType instance representing the specified enum value.
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
SIMPLE_CLASSNAME
public static final java.lang.String SIMPLE_CLASSNAME
Generated simple class name constant.- See Also:
- Constant Field Values
-
PERCENT
public static final DiscountType PERCENT
Generated enum value for DiscountType.PERCENT declared at extension commerceservices.
-
ABSOLUTE
public static final DiscountType ABSOLUTE
Generated enum value for DiscountType.ABSOLUTE declared at extension commerceservices.
-
TARGET
public static final DiscountType TARGET
Generated enum value for DiscountType.TARGET declared at extension commerceservices.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
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.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to compare with.- Returns:
trueif the objects are the same;falseotherwise.
-
getCode
public java.lang.String getCode()
Gets the code of this enum value.- Specified by:
getCodein interfaceHybrisEnumValue- Returns:
- code of value
-
getType
public java.lang.String 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.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for this object, equal to the enum value
coderepresented by thisDiscountTypeobject.
-
toString
public java.lang.String toString()
Returns the code representing this enum value.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the value of this object.
-
valueOf
public static DiscountType valueOf(java.lang.String code)
Returns a DiscountType instance representing the specified enum value.- Parameters:
code- an enum value- Returns:
- a DiscountType instance representing value.
-
-