Class UnitsRouter.ConverterPreference

  • Enclosing class:
    UnitsRouter

    public static class UnitsRouter.ConverterPreference
    extends java.lang.Object
    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.