Class DistanceCalculationHelper
java.lang.Object
com.broadleafcommerce.fulfillment.service.helper.DistanceCalculationHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.fulfillment.common.domain.Distance
add
(com.broadleafcommerce.fulfillment.common.domain.Distance param1, com.broadleafcommerce.fulfillment.common.domain.Distance param2) protected com.broadleafcommerce.fulfillment.common.domain.Distance
convertFromBaseUnit
(com.broadleafcommerce.fulfillment.common.domain.Distance param, String toUnitOfMeasure) protected com.broadleafcommerce.fulfillment.common.domain.Distance
convertToBaseUnit
(com.broadleafcommerce.fulfillment.common.domain.Distance param) protected com.broadleafcommerce.fulfillment.common.domain.Distance
deAliasUnit
(com.broadleafcommerce.fulfillment.common.domain.Distance distance) protected String
deAliasUnit
(String unitOfMeasure) protected void
protected void
com.broadleafcommerce.fulfillment.common.domain.Distance
normalizeDistance
(com.broadleafcommerce.fulfillment.common.domain.Distance distance, String toUnitOfMeasure)
-
Field Details
-
MILLIMETER
- See Also:
-
CENTIMETER
- See Also:
-
METER
- See Also:
-
KILOMETER
- See Also:
-
INCH
- See Also:
-
FOOT
- See Also:
-
MILE
- See Also:
-
mathContext
-
baseUnitOfMeasure
-
conversionToBaseMap
-
aliases
-
-
Constructor Details
-
DistanceCalculationHelper
public DistanceCalculationHelper()
-
-
Method Details
-
initializeConversionMap
protected void initializeConversionMap() -
initializeAliasMap
protected void initializeAliasMap() -
add
public com.broadleafcommerce.fulfillment.common.domain.Distance add(com.broadleafcommerce.fulfillment.common.domain.Distance param1, com.broadleafcommerce.fulfillment.common.domain.Distance param2) -
normalizeDistance
public com.broadleafcommerce.fulfillment.common.domain.Distance normalizeDistance(com.broadleafcommerce.fulfillment.common.domain.Distance distance, String toUnitOfMeasure) -
convertToBaseUnit
protected com.broadleafcommerce.fulfillment.common.domain.Distance convertToBaseUnit(com.broadleafcommerce.fulfillment.common.domain.Distance param) -
convertFromBaseUnit
protected com.broadleafcommerce.fulfillment.common.domain.Distance convertFromBaseUnit(com.broadleafcommerce.fulfillment.common.domain.Distance param, String toUnitOfMeasure) -
deAliasUnit
protected com.broadleafcommerce.fulfillment.common.domain.Distance deAliasUnit(com.broadleafcommerce.fulfillment.common.domain.Distance distance) -
deAliasUnit
-
getBaseUnitOfMeasure
-