java.lang.Object
com.broadleafcommerce.catalog.domain.product.Dimensions
All Implemented Interfaces:
Serializable

public class Dimensions extends Object implements Serializable
Capture common dimension fields when describing a Product or a Variant. Dimensions are designed as scalar fields along with the units they are in
Author:
Phillip Verheyden (phillipuniverse)
See Also:
  • Constructor Details

    • Dimensions

      public Dimensions()
  • Method Details

    • getWidth

      public BigDecimal getWidth()
      Returns:
      the width specification of the described item
    • getHeight

      public BigDecimal getHeight()
      Returns:
      the height specification of the described item
    • getDepth

      public BigDecimal getDepth()
      Returns:
      the depth specification of the described item
    • getUnits

      public String getUnits()
      Returns:
      the units that the various measurements are specified in
      See Also:
    • setWidth

      public void setWidth(BigDecimal width)
      Parameters:
      width - the width specification of the described item
    • setHeight

      public void setHeight(BigDecimal height)
      Parameters:
      height - the height specification of the described item
    • setDepth

      public void setDepth(BigDecimal depth)
      Parameters:
      depth - the depth specification of the described item
    • setUnits

      public void setUnits(String units)
      Parameters:
      units - the units that the various measurements are specified in
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object