Uses of Class
com.walkfares.odsl.conversion.Unit
Package | Description |
---|---|
com.walkfares.odsl.conversion | |
com.walkfares.odsl.conversion.dimension |
-
Uses of Unit in com.walkfares.odsl.conversion
Methods in com.walkfares.odsl.conversion that return Unit Modifier and Type Method Description Unit
Unit. _clone()
static Unit
UnitFactory. getBaseUnit(String code)
Unit
ConversionAction. getFromUnit()
Unit
ConversionAction. getToUnit()
static Unit
UnitFactory. getUnit(String code)
Unit
UnitGrammar. parse(String text)
Unit
Unit. setAddMetricUnits(boolean addMetricUnits)
Unit
Unit. setCode(String code)
Unit
Unit. setConversionFactor(double factor)
Unit
Unit. setDimension(String dimension)
Unit
Unit. setDimensionClass(Dimension dimensionClass)
Unit
Unit. setMetric(boolean metric)
Unit
Unit. setMultiplierText(String multiplierText)
Unit
Unit. setName(String name)
Unit
Unit. setPrefix(String prefix)
Unit
UnitGrammar. visitNumber(com.walkfares.odsl.conversion.grammar.UnitsParser.NumberContext ctx)
Unit
UnitGrammar. visitNumberValue(com.walkfares.odsl.conversion.grammar.UnitsParser.NumberValueContext ctx)
Unit
UnitGrammar. visitUnit(com.walkfares.odsl.conversion.grammar.UnitsParser.UnitContext ctx)
Methods in com.walkfares.odsl.conversion that return types with arguments of type Unit Modifier and Type Method Description static List<Unit>
UnitFactory. getUnitsForDimension(String name)
Methods in com.walkfares.odsl.conversion with parameters of type Unit Modifier and Type Method Description static void
UnitFactory. addMetricUnit(Unit unit)
static void
UnitFactory. addUnit(Unit unit)
double
Dimension. basicConversion(double value, Unit from, Unit to)
ConversionAction
ConversionAction. setFromUnit(Unit fromUnit)
ConversionAction
ConversionAction. setToUnit(Unit toUnit)
-
Uses of Unit in com.walkfares.odsl.conversion.dimension
Methods in com.walkfares.odsl.conversion.dimension that return Unit Modifier and Type Method Description Unit
BaseDimension. getUnit(String code)
Methods in com.walkfares.odsl.conversion.dimension with parameters of type Unit Modifier and Type Method Description double
BaseDimension. basicConversion(double input, Unit from, Unit to)