Class Dimensions
java.lang.Object
com.broadleafcommerce.catalog.domain.product.Dimensions
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getDepth()
getUnits()
getWidth()
int
hashCode()
void
setDepth
(BigDecimal depth) void
setHeight
(BigDecimal height) void
void
setWidth
(BigDecimal width) toString()
-
Constructor Details
-
Dimensions
public Dimensions()
-
-
Method Details
-
getWidth
- Returns:
- the width specification of the described item
-
getHeight
- Returns:
- the height specification of the described item
-
getDepth
- Returns:
- the depth specification of the described item
-
getUnits
- Returns:
- the units that the various measurements are specified in
- See Also:
-
setWidth
- Parameters:
width
- the width specification of the described item
-
setHeight
- Parameters:
height
- the height specification of the described item
-
setDepth
- Parameters:
depth
- the depth specification of the described item
-
setUnits
- Parameters:
units
- the units that the various measurements are specified in- See Also:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-