com.liferay.portlet.unitconverter.util
Class ConverterUtil
java.lang.Object
com.liferay.portlet.unitconverter.util.ConverterUtil
public class ConverterUtil
- extends Object
Method Summary |
static double |
convertArea(int fromId,
int toId,
double fromValue)
|
static double |
convertLength(int fromId,
int toId,
double fromValue)
|
static double |
convertMass(int fromId,
int toId,
double fromValue)
|
static double |
convertTemperature(int fromId,
int toId,
double fromValue)
|
static double |
convertVolume(int fromId,
int toId,
double fromValue)
|
static Conversion |
getConversion(int type,
int fromId,
int toId,
double fromValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMPERATURE_CELSIUS
public static final int TEMPERATURE_CELSIUS
- See Also:
- Constant Field Values
TEMPERATURE_FAHRENHEIHT
public static final int TEMPERATURE_FAHRENHEIHT
- See Also:
- Constant Field Values
ConverterUtil
public ConverterUtil()
convertArea
public static double convertArea(int fromId,
int toId,
double fromValue)
convertLength
public static double convertLength(int fromId,
int toId,
double fromValue)
convertMass
public static double convertMass(int fromId,
int toId,
double fromValue)
convertTemperature
public static double convertTemperature(int fromId,
int toId,
double fromValue)
convertVolume
public static double convertVolume(int fromId,
int toId,
double fromValue)
getConversion
public static Conversion getConversion(int type,
int fromId,
int toId,
double fromValue)