Interface TmaUnitConversionStrategy
-
- All Known Implementing Classes:
DefaultTmaUnitConversionStrategy
public interface TmaUnitConversionStrategyThis strategy is designed to for unit level conversion.- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimalgetUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, java.math.BigDecimal fromUsageUnitValue)Unit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue
-
-
-
Method Detail
-
getUnitConversion
java.math.BigDecimal getUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, java.math.BigDecimal fromUsageUnitValue)
Unit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue- 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
-
-