Class UnitOfMeasureUtil
java.lang.Object
org.broadleafcommerce.common.util.UnitOfMeasureUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalstatic BigDecimalstatic BigDecimalconvertInchesToFeet(BigDecimal inches) static BigDecimalconvertKilogramsToPounds(BigDecimal kilograms) static BigDecimalconvertMetersToFeet(BigDecimal meters) static BigDecimalconvertOuncesToPounds(BigDecimal ounces) static BigDecimalconvertPoundsToKilograms(BigDecimal pounds) static BigDecimalconvertPoundsToOunces(BigDecimal pounds) static BigDecimalfindInches(BigDecimal dimension, DimensionUnitOfMeasureType type) static BigDecimalfindOunces(BigDecimal weight, WeightUnitOfMeasureType type) static BigDecimalfindPounds(BigDecimal weight, WeightUnitOfMeasureType type) static BigDecimalfindRemainingOunces(BigDecimal weight, WeightUnitOfMeasureType type) static intfindWholePounds(BigDecimal weight, WeightUnitOfMeasureType type)
-
Constructor Details
-
UnitOfMeasureUtil
public UnitOfMeasureUtil()
-
-
Method Details
-
convertKilogramsToPounds
-
convertPoundsToKilograms
-
convertPoundsToOunces
-
convertOuncesToPounds
-
convertFeetToMeters
-
convertMetersToFeet
-
convertInchesToFeet
-
convertFeetToInches
-
findWholePounds
-
findPounds
-
findRemainingOunces
-
findOunces
-
findInches
-