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 ItemStateBuilder
builder()
builder factory method for ItemStatestatic ItemStateBuilder
create builder for ItemState instancestatic ItemState
factory method to create a deep copy of ItemState@NotNull Long
Number of Line Items or Custom Line Items in this State.@NotNull @Valid StateReference
getState()
State of the Line Items or Custom Line Items in a custom workflow.static ItemState
of()
factory methodstatic ItemState
factory method to create a shallow copy ItemStatevoid
setQuantity
(Long quantity) Number of Line Items or Custom Line Items in this State.void
setState
(StateReference 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> T
withItemState
(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.
- 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.
- 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
-
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
-