Interface OrderEditApply
public interface OrderEditApply
If the editVersion
and/or resourceVersion
do not match the actual version, a ConcurrentModification error will be returned.
Example to create an instance using the builder pattern
OrderEditApply orderEditApply = OrderEditApply.builder()
.editVersion(0.3)
.resourceVersion(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderEditApplyBuilder
builder()
builder factory method for OrderEditApplystatic OrderEditApplyBuilder
builder
(OrderEditApply template) create builder for OrderEditApply instancestatic OrderEditApply
deepCopy
(OrderEditApply template) factory method to create a deep copy of OrderEditApply@NotNull Long
Currentversion
of the OrderEdit to be applied.@NotNull Long
Currentversion
of the Order to which the OrderEdit is applied.static OrderEditApply
of()
factory methodstatic OrderEditApply
of
(OrderEditApply template) factory method to create a shallow copy OrderEditApplyvoid
setEditVersion
(Long editVersion) Currentversion
of the OrderEdit to be applied.void
setResourceVersion
(Long resourceVersion) Currentversion
of the Order to which the OrderEdit is applied.static com.fasterxml.jackson.core.type.TypeReference<OrderEditApply>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderEditApply
(Function<OrderEditApply, T> helper) accessor map function
-
Method Details
-
getEditVersion
Current
version
of the OrderEdit to be applied.- Returns:
- editVersion
-
getResourceVersion
Current
version
of the Order to which the OrderEdit is applied.- Returns:
- resourceVersion
-
setEditVersion
Current
version
of the OrderEdit to be applied.- Parameters:
editVersion
- value to be set
-
setResourceVersion
Current
version
of the Order to which the OrderEdit is applied.- Parameters:
resourceVersion
- value to be set
-
of
factory method- Returns:
- instance of OrderEditApply
-
of
factory method to create a shallow copy OrderEditApply- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderEditApply- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderEditApply- Returns:
- builder
-
builder
create builder for OrderEditApply instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderEditApply
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-