Interface PqUnitConversionStrategy

All Known Implementing Classes:
DefaultPqUnitConversionStrategy

public interface PqUnitConversionStrategy
This strategy is designed to handle unit level conversion.
Since:
2211
  • Method Summary

    Modifier and Type
    Method
    Description
    getUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, BigDecimal fromUsageUnitValue)
    Unit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue
  • Method Details

    • getUnitConversion

      BigDecimal getUnitConversion(UsageUnitModel fromUsageUnit, UsageUnitModel toUsageUnit, BigDecimal fromUsageUnitValue)
      Unit conversion strategy service for given fromUsageUnit to given toUsageUnit, for given fromUsageUnitValue
      Parameters:
      fromUsageUnit - the UsageUnitModel for the unit needs to converted
      toUsageUnit - the UsageUnitModel to which value needs to converted
      fromUsageUnitValue - the value of the unit needs to converted to toUsageUnit
      Returns:
      BigDecimal object after conversion