Liferay 6.0.5

com.liferay.portlet.unitconverter.util
Class ConverterUtil

java.lang.Object
  extended by com.liferay.portlet.unitconverter.util.ConverterUtil

public class ConverterUtil
extends Object


Field Summary
static int TEMPERATURE_CELSIUS
           
static int TEMPERATURE_FAHRENHEIHT
           
 
Constructor Summary
ConverterUtil()
           
 
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
 

Field Detail

TEMPERATURE_CELSIUS

public static int TEMPERATURE_CELSIUS

TEMPERATURE_FAHRENHEIHT

public static int TEMPERATURE_FAHRENHEIHT
Constructor Detail

ConverterUtil

public ConverterUtil()
Method Detail

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)

Liferay 6.0.5