Class BaseDimension
java.lang.Object
com.walkfares.odsl.conversion.dimension.BaseDimension
- All Implemented Interfaces:
Dimension
- Direct Known Subclasses:
Angle
,Energy
,FreeForm
,Frequency
,Length
,Mass
,Power
,Speed
,Temperature
,Volume
public abstract class BaseDimension extends Object implements Dimension
-
Constructor Summary
Constructors Constructor Description BaseDimension()
-
Method Summary
Modifier and Type Method Description double
basicConversion(double input, Unit from, Unit to)
double
basicConversion(double input, String from, String to)
double
basicConversion(double input, String from, String to, boolean invert)
double
customConversion(double value, ConversionAction action)
List<AllowedConversion>
getBaseAllowedConversions()
Unit
getUnit(String code)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.walkfares.odsl.conversion.Dimension
convert, getAllowedConversions, getCode
-
Constructor Details
-
BaseDimension
public BaseDimension()
-
-
Method Details
-
getUnit
-
basicConversion
- Specified by:
basicConversion
in interfaceDimension
-
basicConversion
- Specified by:
basicConversion
in interfaceDimension
-
basicConversion
- Specified by:
basicConversion
in interfaceDimension
-
customConversion
- Specified by:
customConversion
in interfaceDimension
-
getBaseAllowedConversions
-