Class DefaultTmaUnitConversionStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.unitconversion.strategies.impl.DefaultTmaUnitConversionStrategy
- All Implemented Interfaces:
TmaUnitConversionStrategy
Default implementation of the
TmaUnitConversionStrategy.- Since:
- 6.7
-
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
-
DefaultTmaUnitConversionStrategy
public DefaultTmaUnitConversionStrategy()
-
-
Method Details
-
getUnitConversion
public BigDecimal getUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, BigDecimal fromUsageUnitValue) Description copied from interface:TmaUnitConversionStrategyUnit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue- Specified by:
getUnitConversionin interfaceTmaUnitConversionStrategy- 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
-