herschel.share.unit.converter
public interface UnitConverter
double convert(double value,
Unit<?> sourceUnit,
Unit<?> targetUnit)
sourceUnit, in terms of the targetUnit.value - Original value, expressed in the sourceUnitsourceUnit - The unit in which the given value is expressedtargetUnit - The unit in which we want to express the given valuetargetUnitjava.lang.NullPointerException - if any of the units is nulljava.lang.IllegalArgumentException - if the conversion cannot be done