Class DistanceCalculationHelper

java.lang.Object
com.broadleafcommerce.fulfillment.service.helper.DistanceCalculationHelper

public class DistanceCalculationHelper extends Object
  • Field Details

  • 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

      protected String deAliasUnit(String unitOfMeasure)
    • getBaseUnitOfMeasure

      public String getBaseUnitOfMeasure()