Interface DeliveryItem
public interface DeliveryItem
DeliveryItem
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryItem deliveryItem = DeliveryItem.builder()
.id("{id}")
.quantity(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryItemBuilder
builder()
builder factory method for DeliveryItemstatic DeliveryItemBuilder
builder
(DeliveryItem template) create builder for DeliveryItem instancestatic DeliveryItem
deepCopy
(DeliveryItem template) factory method to create a deep copy of DeliveryItem@NotNull String
getId()
id
of the LineItem or CustomLineItem delivered.@NotNull Long
Number of Line Items or Custom Line Items delivered.static DeliveryItem
of()
factory methodstatic DeliveryItem
of
(DeliveryItem template) factory method to create a shallow copy DeliveryItemvoid
id
of the LineItem or CustomLineItem delivered.void
setQuantity
(Long quantity) Number of Line Items or Custom Line Items delivered.static com.fasterxml.jackson.core.type.TypeReference<DeliveryItem>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDeliveryItem
(Function<DeliveryItem, T> helper) accessor map function
-
Method Details
-
getId
id
of the LineItem or CustomLineItem delivered.- Returns:
- id
-
getQuantity
Number of Line Items or Custom Line Items delivered.
- Returns:
- quantity
-
setId
id
of the LineItem or CustomLineItem delivered.- Parameters:
id
- value to be set
-
setQuantity
Number of Line Items or Custom Line Items delivered.
- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of DeliveryItem
-
of
factory method to create a shallow copy DeliveryItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DeliveryItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryItem- Returns:
- builder
-
builder
create builder for DeliveryItem instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryItem
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
-