Interface ParcelMeasurements
public interface ParcelMeasurements
ParcelMeasurements
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelMeasurements parcelMeasurements = ParcelMeasurements.builder()
.heightInMillimeter(1)
.lengthInMillimeter(1)
.widthInMillimeter(1)
.weightInGram(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParcelMeasurementsBuilder
builder()
builder factory method for ParcelMeasurementsstatic ParcelMeasurementsBuilder
builder
(ParcelMeasurements template) create builder for ParcelMeasurements instancestatic ParcelMeasurements
deepCopy
(ParcelMeasurements template) factory method to create a deep copy of ParcelMeasurements@NotNull Integer
@NotNull Integer
@NotNull Integer
@NotNull Integer
static ParcelMeasurements
of()
factory methodstatic ParcelMeasurements
of
(ParcelMeasurements template) factory method to create a shallow copy ParcelMeasurementsvoid
setHeightInMillimeter
(Integer heightInMillimeter) set heightInMillimetervoid
setLengthInMillimeter
(Integer lengthInMillimeter) set lengthInMillimetervoid
setWeightInGram
(Integer weightInGram) set weightInGramvoid
setWidthInMillimeter
(Integer widthInMillimeter) set widthInMillimeterstatic com.fasterxml.jackson.core.type.TypeReference<ParcelMeasurements>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withParcelMeasurements
(Function<ParcelMeasurements, T> helper) accessor map function
-
Method Details
-
getHeightInMillimeter
- Returns:
- heightInMillimeter
-
getLengthInMillimeter
- Returns:
- lengthInMillimeter
-
getWidthInMillimeter
- Returns:
- widthInMillimeter
-
getWeightInGram
- Returns:
- weightInGram
-
setHeightInMillimeter
set heightInMillimeter- Parameters:
heightInMillimeter
- value to be set
-
setLengthInMillimeter
set lengthInMillimeter- Parameters:
lengthInMillimeter
- value to be set
-
setWidthInMillimeter
set widthInMillimeter- Parameters:
widthInMillimeter
- value to be set
-
setWeightInGram
set weightInGram- Parameters:
weightInGram
- value to be set
-
of
factory method- Returns:
- instance of ParcelMeasurements
-
of
factory method to create a shallow copy ParcelMeasurements- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ParcelMeasurements- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ParcelMeasurements- Returns:
- builder
-
builder
create builder for ParcelMeasurements instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withParcelMeasurements
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
-