Interface DeliveryParcelDraft
- All Superinterfaces:
Draft<DeliveryParcelDraft>
DeliveryParcelDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryParcelDraft deliveryParcelDraft = DeliveryParcelDraft.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryParcelDraftBuilder
builder()
builder factory method for DeliveryParcelDraftstatic DeliveryParcelDraftBuilder
builder
(DeliveryParcelDraft template) create builder for DeliveryParcelDraft instancestatic DeliveryParcelDraft
deepCopy
(DeliveryParcelDraft template) factory method to create a deep copy of DeliveryParcelDraft@Valid List<DeliveryItem>
getItems()
@Valid ParcelMeasurements
@Valid TrackingData
static DeliveryParcelDraft
of()
factory methodstatic DeliveryParcelDraft
of
(DeliveryParcelDraft template) factory method to create a shallow copy DeliveryParcelDraftvoid
setItems
(DeliveryItem... items) set itemsvoid
setItems
(List<DeliveryItem> items) set itemsvoid
setMeasurements
(ParcelMeasurements measurements) set measurementsvoid
setTrackingData
(TrackingData trackingData) set trackingDatastatic com.fasterxml.jackson.core.type.TypeReference<DeliveryParcelDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDeliveryParcelDraft
(Function<DeliveryParcelDraft, T> helper) accessor map function
-
Method Details
-
getMeasurements
- Returns:
- measurements
-
getTrackingData
- Returns:
- trackingData
-
getItems
- Returns:
- items
-
setMeasurements
set measurements- Parameters:
measurements
- value to be set
-
setTrackingData
set trackingData- Parameters:
trackingData
- 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 DeliveryParcelDraft
-
of
factory method to create a shallow copy DeliveryParcelDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DeliveryParcelDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryParcelDraft- Returns:
- builder
-
builder
create builder for DeliveryParcelDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryParcelDraft
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
-