Enum InventoryMode.InventoryModeEnum
java.lang.Object
java.lang.Enum<InventoryMode.InventoryModeEnum>
com.commercetools.api.models.cart.InventoryMode.InventoryModeEnum
- All Implemented Interfaces:
InventoryMode
,JsonEnum
,Serializable
,Comparable<InventoryMode.InventoryModeEnum>
,java.lang.constant.Constable
- Enclosing interface:
- InventoryMode
public static enum InventoryMode.InventoryModeEnum
extends Enum<InventoryMode.InventoryModeEnum>
implements InventoryMode
possible values of InventoryMode
-
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.InventoryMode
InventoryMode.InventoryModeEnum
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface com.commercetools.api.models.cart.InventoryMode
NONE, RESERVE_ON_ORDER, TRACK_ONLY
-
Method Summary
Modifier and TypeMethodDescriptionthe JSON valuetoString()
convert value to stringReturns the enum constant of this type with the specified name.static InventoryMode.InventoryModeEnum[]
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.InventoryMode
name
-
Enum Constant Details
-
NONE
None -
TRACK_ONLY
TrackOnly -
RESERVE_ON_ORDER
ReserveOnOrder
-
-
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:InventoryMode
the JSON value- Specified by:
getJsonName
in interfaceInventoryMode
- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
toString
Description copied from interface:InventoryMode
convert value to string- Specified by:
toString
in interfaceInventoryMode
- Specified by:
toString
in interfaceJsonEnum
- Overrides:
toString
in classEnum<InventoryMode.InventoryModeEnum>
- Returns:
- string representation
-