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 OrderEditApplyBuilderbuilder()builder factory method for OrderEditApplystatic OrderEditApplyBuilderbuilder(OrderEditApply template) create builder for OrderEditApply instancecopyDeep()static OrderEditApplydeepCopy(OrderEditApply template) factory method to create a deep copy of OrderEditApply@NotNull LongCurrentversionof the OrderEdit to be applied.@NotNull LongCurrentversionof the Order to which the OrderEdit is applied.static OrderEditApplyof()factory methodstatic OrderEditApplyof(OrderEditApply template) factory method to create a shallow copy OrderEditApplyvoidsetEditVersion(Long editVersion) Currentversionof the OrderEdit to be applied.voidsetResourceVersion(Long resourceVersion) Currentversionof 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> TwithOrderEditApply(Function<OrderEditApply, T> helper) accessor map function
-
Method Details
-
getEditVersion
Current
versionof the OrderEdit to be applied.- Returns:
- editVersion
-
getResourceVersion
Current
versionof the Order to which the OrderEdit is applied.- Returns:
- resourceVersion
-
setEditVersion
Current
versionof the OrderEdit to be applied.- Parameters:
editVersion- value to be set
-
setResourceVersion
Current
versionof 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
-
copyDeep
OrderEditApply copyDeep() -
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
-