Interface ItemState
public interface ItemState
ItemState
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ItemState itemState = ItemState.builder()
.quantity(0.3)
.state(stateBuilder -> stateBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStateBuilderbuilder()builder factory method for ItemStatestatic ItemStateBuildercreate builder for ItemState instancecopyDeep()static ItemStatefactory method to create a deep copy of ItemState@NotNull LongNumber of Line Items or Custom Line Items in this State.@NotNull @Valid StateKeyReferencegetState()State of the Line Items or Custom Line Items in a custom workflow.static ItemStateof()factory methodstatic ItemStatefactory method to create a shallow copy ItemStatevoidsetQuantity(Long quantity) Number of Line Items or Custom Line Items in this State.voidsetState(StateKeyReference state) State of the Line Items or Custom Line Items in a custom workflow.static com.fasterxml.jackson.core.type.TypeReference<ItemState>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithItemState(Function<ItemState, T> helper) accessor map function
-
Method Details
-
getQuantity
Number of Line Items or Custom Line Items in this State.
- Returns:
- quantity
-
getState
State of the Line Items or Custom Line Items in a custom workflow. If the referenced State does not exist, the
stateof the ImportOperation will be set tounresolveduntil the referenced State is created.- Returns:
- state
-
setQuantity
Number of Line Items or Custom Line Items in this State.
- Parameters:
quantity- value to be set
-
setState
State of the Line Items or Custom Line Items in a custom workflow. If the referenced State does not exist, the
stateof the ImportOperation will be set tounresolveduntil the referenced State is created.- Parameters:
state- value to be set
-
of
factory method- Returns:
- instance of ItemState
-
of
factory method to create a shallow copy ItemState- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ItemState copyDeep() -
deepCopy
factory method to create a deep copy of ItemState- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ItemState- Returns:
- builder
-
builder
create builder for ItemState instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withItemState
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
-