Class Weight
java.lang.Object
com.broadleafcommerce.fulfillment.common.domain.Weight
Generally represents weight, including a value and unit of measure.
- Author:
- Kelly Tisdell (ktisdell)
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanThe unit of measure of this weight.getValue()The numeric value of this weight.inthashCode()static Weightof(BigDecimal value, String unit) Get a new Weight object from the given value and unit.voidsetUnitOfMeasure(String unitOfMeasure) voidsetValue(BigDecimal value) toString()
- 
Constructor Details- 
Weight
- 
Weightpublic Weight()
 
- 
- 
Method Details- 
ofGet a new Weight object from the given value and unit.- Parameters:
- value-
- unit-
- Returns:
 
- 
setValue
- 
setUnitOfMeasure
- 
toString
- 
getValueThe numeric value of this weight.- Returns:
- The numeric value of this weight.
 
- 
getUnitOfMeasureThe unit of measure of this weight.- Returns:
- The unit of measure of this weight.
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-