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

public class Weight extends Object implements Serializable
Sizing attributes of a Product or Variant
Author:
Chad Harchar (charchar)
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