Enum CartState.CartStateEnum
- All Implemented Interfaces:
CartState
,JsonEnum
,Serializable
,Comparable<CartState.CartStateEnum>
,java.lang.constant.Constable
- Enclosing interface:
- CartState
public static enum CartState.CartStateEnum
extends Enum<CartState.CartStateEnum>
implements CartState
possible values of CartState
-
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.CartState
CartState.CartStateEnum
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionthe JSON valuetoString()
convert value to stringstatic CartState.CartStateEnum
Returns the enum constant of this type with the specified name.static CartState.CartStateEnum[]
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
-
Enum Constant Details
-
ACTIVE
Active -
MERGED
Merged -
ORDERED
Ordered -
FROZEN
Frozen
-
-
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:CartState
the JSON value- Specified by:
getJsonName
in interfaceCartState
- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
toString
Description copied from interface:CartState
convert value to string
-