Interface ParcelMeasurements


public interface ParcelMeasurements
ParcelMeasurements
Example to create an instance using the builder pattern

     ParcelMeasurements parcelMeasurements = ParcelMeasurements.builder()
             .build()
 
  • 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

      void setHeightInMillimeter(Integer heightInMillimeter)

      Height of the Parcel.

      Parameters:
      heightInMillimeter - value to be set
    • setLengthInMillimeter

      void setLengthInMillimeter(Integer lengthInMillimeter)

      Length of the Parcel.

      Parameters:
      lengthInMillimeter - value to be set
    • setWidthInMillimeter

      void setWidthInMillimeter(Integer widthInMillimeter)

      Width of the Parcel.

      Parameters:
      widthInMillimeter - value to be set
    • setWeightInGram

      void setWeightInGram(Integer weightInGram)

      Weight of the Parcel.

      Parameters:
      weightInGram - value to be set
    • of

      static ParcelMeasurements of()
      factory method
      Returns:
      instance of ParcelMeasurements
    • of

      static ParcelMeasurements of(ParcelMeasurements template)
      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

      static ParcelMeasurementsBuilder builder()
      builder factory method for ParcelMeasurements
      Returns:
      builder
    • builder

      static ParcelMeasurementsBuilder builder(ParcelMeasurements template)
      create builder for ParcelMeasurements instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withParcelMeasurements

      default <T> T withParcelMeasurements(Function<ParcelMeasurements,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ParcelMeasurements> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference