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()
@NotNull Long
static DeliveryItem
of()
factory methodstatic DeliveryItem
of
(DeliveryItem template) factory method to create a shallow copy DeliveryItemvoid
set idvoid
setQuantity
(Long quantity) set quantitystatic 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
- Returns:
- id
-
getQuantity
- Returns:
- quantity
-
setId
set id- Parameters:
id
- value to be set
-
setQuantity
set quantity- 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
-