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()
      Returns:
      heightInMillimeter
    • getLengthInMillimeter

      Integer getLengthInMillimeter()
      Returns:
      lengthInMillimeter
    • getWidthInMillimeter

      Integer getWidthInMillimeter()
      Returns:
      widthInMillimeter
    • getWeightInGram

      Integer getWeightInGram()
      Returns:
      weightInGram
    • setHeightInMillimeter

      void setHeightInMillimeter(Integer heightInMillimeter)
      set heightInMillimeter
      Parameters:
      heightInMillimeter - value to be set
    • setLengthInMillimeter

      void setLengthInMillimeter(Integer lengthInMillimeter)
      set lengthInMillimeter
      Parameters:
      lengthInMillimeter - value to be set
    • setWidthInMillimeter

      void setWidthInMillimeter(Integer widthInMillimeter)
      set widthInMillimeter
      Parameters:
      widthInMillimeter - value to be set
    • setWeightInGram

      void setWeightInGram(Integer weightInGram)
      set weightInGram
      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