Enum SelectionMode.SelectionModeEnum
java.lang.Object
java.lang.Enum<SelectionMode.SelectionModeEnum>
com.commercetools.api.models.cart_discount.SelectionMode.SelectionModeEnum
- All Implemented Interfaces:
SelectionMode
,JsonEnum
,Serializable
,Comparable<SelectionMode.SelectionModeEnum>
,java.lang.constant.Constable
- Enclosing interface:
- SelectionMode
public static enum SelectionMode.SelectionModeEnum
extends Enum<SelectionMode.SelectionModeEnum>
implements SelectionMode
possible values of SelectionMode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.commercetools.api.models.cart_discount.SelectionMode
SelectionMode.SelectionModeEnum
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface com.commercetools.api.models.cart_discount.SelectionMode
CHEAPEST, MOST_EXPENSIVE
-
Method Summary
Modifier and TypeMethodDescriptionthe JSON valuetoString()
convert value to stringReturns the enum constant of this type with the specified name.static SelectionMode.SelectionModeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface com.commercetools.api.models.cart_discount.SelectionMode
name
-
Enum Constant Details
-
CHEAPEST
Cheapest -
MOST_EXPENSIVE
MostExpensive
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getJsonName
Description copied from interface:SelectionMode
the JSON value- Specified by:
getJsonName
in interfaceJsonEnum
- Specified by:
getJsonName
in interfaceSelectionMode
- Returns:
- json value
-
toString
Description copied from interface:SelectionMode
convert value to string- Specified by:
toString
in interfaceJsonEnum
- Specified by:
toString
in interfaceSelectionMode
- Overrides:
toString
in classEnum<SelectionMode.SelectionModeEnum>
- Returns:
- string representation
-