Interface ParcelMeasurements
- All Known Implementing Classes:
ParcelMeasurementsImpl
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()
.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 ParcelMeasurementsHeight of the Parcel.Length of the Parcel.Weight of the Parcel.Width of the Parcel.static ParcelMeasurements
of()
factory methodstatic ParcelMeasurements
of
(ParcelMeasurements template) factory method to create a shallow copy ParcelMeasurementsvoid
setHeightInMillimeter
(Integer heightInMillimeter) Height of the Parcel.void
setLengthInMillimeter
(Integer lengthInMillimeter) Length of the Parcel.void
setWeightInGram
(Integer weightInGram) Weight of the Parcel.void
setWidthInMillimeter
(Integer widthInMillimeter) Width of the Parcel.static 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
Integer getHeightInMillimeter()Height of the Parcel.
- Returns:
- heightInMillimeter
-
getLengthInMillimeter
Integer getLengthInMillimeter()Length of the Parcel.
- Returns:
- lengthInMillimeter
-
getWidthInMillimeter
Integer getWidthInMillimeter()Width of the Parcel.
- Returns:
- widthInMillimeter
-
getWeightInGram
Integer getWeightInGram()Weight of the Parcel.
- Returns:
- weightInGram
-
setHeightInMillimeter
Height of the Parcel.
- Parameters:
heightInMillimeter
- value to be set
-
setLengthInMillimeter
Length of the Parcel.
- Parameters:
lengthInMillimeter
- value to be set
-
setWidthInMillimeter
Width of the Parcel.
- Parameters:
widthInMillimeter
- value to be set
-
setWeightInGram
Weight of the Parcel.
- 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
-