Class UnitsRouter.ConverterPreference
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.units.UnitsRouter.ConverterPreference
- Enclosing class:
UnitsRouter
Contains the complex unit converter and the limit which representing the smallest value that the
converter should accept. For example, if the converter is converting to
foot+inch and the
limit equals 3.0, thus means the converter should not convert to a value less than 3.0 feet.
NOTE:
if the limit doest not has a value (i.e. std::numeric_limits<double>::lowest()),
this mean there is no limit for the converter.
-
Constructor Summary
ConstructorsConstructorDescriptionConverterPreference(MeasureUnitImpl source, MeasureUnitImpl targetUnit, String precision, ConversionRates conversionRates) ConverterPreference(MeasureUnitImpl source, MeasureUnitImpl targetUnit, BigDecimal limit, String precision, ConversionRates conversionRates) -
Method Summary
-
Constructor Details
-
ConverterPreference
public ConverterPreference(MeasureUnitImpl source, MeasureUnitImpl targetUnit, String precision, ConversionRates conversionRates) -
ConverterPreference
public ConverterPreference(MeasureUnitImpl source, MeasureUnitImpl targetUnit, BigDecimal limit, String precision, ConversionRates conversionRates)
-