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 int TEMPERATURE_CELSIUS
TEMPERATURE_FAHRENHEIHT
public static int TEMPERATURE_FAHRENHEIHT
ConverterUtil
public ConverterUtil()
getConversion
public static Conversion getConversion(int type,
int fromId,
int toId,
double fromValue)
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)