Class Weight
- java.lang.Object
-
- com.broadleafcommerce.shipping.domain.Weight
-
- All Implemented Interfaces:
Serializable
public class Weight extends Object implements Serializable
Weight for shipping items. JsonAlias is used for compatability with CartOps.- Author:
- Cade Rea (cade-rea)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Weight()Weight(BigDecimal value, String unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetUnit()BigDecimalgetValue()inthashCode()voidsetUnit(String unit)voidsetValue(BigDecimal value)StringtoString()
-
-
-
Constructor Detail
-
Weight
public Weight(BigDecimal value, String unit)
-
Weight
public Weight()
-
-
Method Detail
-
getValue
public BigDecimal getValue()
-
getUnit
public String getUnit()
-
setValue
public void setValue(BigDecimal value)
-
setUnit
public void setUnit(String unit)
-
canEqual
protected boolean canEqual(Object other)
-
-