Class DefaultPqUnitConversionStrategy
java.lang.Object
de.hybris.platform.productqualificationservices.unitconversion.impl.DefaultPqUnitConversionStrategy
- All Implemented Interfaces:
PqUnitConversionStrategy
Default implementation of the
PqUnitConversionStrategy.- Since:
- 2211
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, BigDecimal fromUsageUnitValue) Unit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue
-
Constructor Details
-
DefaultPqUnitConversionStrategy
public DefaultPqUnitConversionStrategy()
-
-
Method Details
-
getUnitConversion
public BigDecimal getUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, BigDecimal fromUsageUnitValue) Description copied from interface:PqUnitConversionStrategyUnit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue- Specified by:
getUnitConversionin interfacePqUnitConversionStrategy- Parameters:
fromUsageUnit- the UsageUnitModel for the unit needs to convertedtoUsageUnit- the UsageUnitModel to which value needs to convertedfromUsageUnitValue- the value of the unit needs to converted to toUsageUnit- Returns:
BigDecimalobject after conversion
-