Interface VariantUpdate
public interface VariantUpdate
VariantUpdate
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantUpdate variantUpdate = VariantUpdate.builder()
.version(0.3)
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic VariantUpdateBuilderbuilder()builder factory method for VariantUpdatestatic VariantUpdateBuilderbuilder(VariantUpdate template) create builder for VariantUpdate instancecopyDeep()static VariantUpdatedeepCopy(VariantUpdate template) factory method to create a deep copy of VariantUpdate@NotNull @Valid List<VariantUpdateAction>Update actions to be performed on the Variant.@NotNull LongExpected version of the Variant on which the changes should be applied.static VariantUpdateof()factory methodstatic VariantUpdateof(VariantUpdate template) factory method to create a shallow copy VariantUpdatevoidsetActions(VariantUpdateAction... actions) Update actions to be performed on the Variant.voidsetActions(List<VariantUpdateAction> actions) Update actions to be performed on the Variant.voidsetVersion(Long version) Expected version of the Variant on which the changes should be applied.static tools.jackson.core.type.TypeReference<VariantUpdate>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithVariantUpdate(Function<VariantUpdate, T> helper) accessor map function
-
Method Details
-
getVersion
Expected version of the Variant on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Returns:
- version
-
getActions
Update actions to be performed on the Variant.
- Returns:
- actions
-
setVersion
Expected version of the Variant on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Parameters:
version- value to be set
-
setActions
Update actions to be performed on the Variant.
- Parameters:
actions- values to be set
-
setActions
Update actions to be performed on the Variant.
- Parameters:
actions- values to be set
-
of
factory method- Returns:
- instance of VariantUpdate
-
of
factory method to create a shallow copy VariantUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantUpdate copyDeep() -
deepCopy
factory method to create a deep copy of VariantUpdate- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantUpdate- Returns:
- builder
-
builder
create builder for VariantUpdate instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantUpdate
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
-