Package com.walkfares.odsl.conversion
Interface Dimension
- All Known Implementing Classes:
Angle
,BaseDimension
,Energy
,FreeForm
,Frequency
,Length
,Mass
,Power
,Speed
,Temperature
,Volume
public interface Dimension
-
Method Summary
Modifier and Type Method Description double
basicConversion(double value, Unit from, Unit to)
double
basicConversion(double value, String from, String to)
double
basicConversion(double value, String from, String to, boolean invert)
double
convert(double value, ConversionAction action)
double
customConversion(double value, ConversionAction action)
List<AllowedConversion>
getAllowedConversions()
String
getCode()
-
Method Details
-
getCode
String getCode() -
convert
-
basicConversion
-
basicConversion
-
basicConversion
-
customConversion
-
getAllowedConversions
List<AllowedConversion> getAllowedConversions()
-