Class StateUpdateImpl
java.lang.Object
com.commercetools.api.models.state.StateUpdateImpl
- All Implemented Interfaces:
ResourceUpdate<StateUpdate,
,StateUpdateAction, StateUpdateBuilder> StateUpdate
,io.vrap.rmf.base.client.ModelBase
public class StateUpdateImpl
extends Object
implements StateUpdate, io.vrap.rmf.base.client.ModelBase
StateUpdate
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Update actions to be performed on the State.Expected version of the State on which the changes should be applied.int
hashCode()
void
setActions
(StateUpdateAction... actions) Update actions to be performed on the State.void
setActions
(List<StateUpdateAction> actions) Update actions to be performed on the State.void
setVersion
(Long version) Expected version of the State on which the changes should be applied.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdate
get
Methods inherited from interface com.commercetools.api.models.state.StateUpdate
withStateUpdate
-
Constructor Details
-
StateUpdateImpl
public StateUpdateImpl()create empty instance
-
-
Method Details
-
getVersion
Expected version of the State on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.
- Specified by:
getVersion
in interfaceResourceUpdate<StateUpdate,
StateUpdateAction, StateUpdateBuilder> - Specified by:
getVersion
in interfaceStateUpdate
- Returns:
- version
-
getActions
Update actions to be performed on the State.
- Specified by:
getActions
in interfaceResourceUpdate<StateUpdate,
StateUpdateAction, StateUpdateBuilder> - Specified by:
getActions
in interfaceStateUpdate
- Returns:
- actions
-
setVersion
Description copied from interface:StateUpdate
Expected version of the State on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error is returned.
- Specified by:
setVersion
in interfaceResourceUpdate<StateUpdate,
StateUpdateAction, StateUpdateBuilder> - Specified by:
setVersion
in interfaceStateUpdate
- Parameters:
version
- value to be set
-
setActions
Description copied from interface:StateUpdate
Update actions to be performed on the State.
- Specified by:
setActions
in interfaceStateUpdate
- Parameters:
actions
- values to be set
-
setActions
Description copied from interface:StateUpdate
Update actions to be performed on the State.
- Specified by:
setActions
in interfaceResourceUpdate<StateUpdate,
StateUpdateAction, StateUpdateBuilder> - Specified by:
setActions
in interfaceStateUpdate
- Parameters:
actions
- values to be set
-
equals
-
hashCode
-