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()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParcelMeasurementsBuilderbuilder()builder factory method for ParcelMeasurementsstatic ParcelMeasurementsBuilderbuilder(ParcelMeasurements template) create builder for ParcelMeasurements instancecopyDeep()static ParcelMeasurementsdeepCopy(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 ParcelMeasurementsof()factory methodstatic ParcelMeasurementsof(ParcelMeasurements template) factory method to create a shallow copy ParcelMeasurementsvoidsetHeightInMillimeter(Integer heightInMillimeter) Height of the Parcel.voidsetLengthInMillimeter(Integer lengthInMillimeter) Length of the Parcel.voidsetWeightInGram(Integer weightInGram) Weight of the Parcel.voidsetWidthInMillimeter(Integer widthInMillimeter) Width of the Parcel.static com.fasterxml.jackson.core.type.TypeReference<ParcelMeasurements>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithParcelMeasurements(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
-
copyDeep
ParcelMeasurements copyDeep() -
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
-