Interface ParcelItems
public interface ParcelItems
ParcelItems
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelItems parcelItems = ParcelItems.builder()
.parcelId("{parcelId}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParcelItemsBuilder
builder()
builder factory method for ParcelItemsstatic ParcelItemsBuilder
builder
(ParcelItems template) create builder for ParcelItems instancestatic ParcelItems
deepCopy
(ParcelItems template) factory method to create a deep copy of ParcelItems@Valid List<DeliveryItem>
getItems()
@NotNull String
static ParcelItems
of()
factory methodstatic ParcelItems
of
(ParcelItems template) factory method to create a shallow copy ParcelItemsvoid
setItems
(DeliveryItem... items) set itemsvoid
setItems
(List<DeliveryItem> items) set itemsvoid
setParcelId
(String parcelId) set parcelIdstatic com.fasterxml.jackson.core.type.TypeReference<ParcelItems>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withParcelItems
(Function<ParcelItems, T> helper) accessor map function
-
Method Details
-
getParcelId
- Returns:
- parcelId
-
getItems
- Returns:
- items
-
setParcelId
set parcelId- Parameters:
parcelId
- value to be set
-
setItems
set items- Parameters:
items
- values to be set
-
setItems
set items- Parameters:
items
- values to be set
-
of
factory method- Returns:
- instance of ParcelItems
-
of
factory method to create a shallow copy ParcelItems- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ParcelItems- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ParcelItems- Returns:
- builder
-
builder
create builder for ParcelItems instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelItems
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
-