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

public class Weight extends Object implements Serializable
Sizing attributes of a Product or Variant
Author:
Phillip Verheyden (phillipuniverse)
See Also:
  • Constructor Details

    • Weight

      public Weight()
  • Method Details

    • getWeight

      public BigDecimal getWeight()
    • getUnits

      public String getUnits()
      Returns:
      the units to specify this weight in
      See Also:
    • setWeight

      public void setWeight(BigDecimal weight)
    • setUnits

      public void setUnits(String units)
      Parameters:
      units - the units to specify this weight 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