Liferay 6.1.2-ce-ga3

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 final int TEMPERATURE_CELSIUS
See Also:
Constant Field Values

TEMPERATURE_FAHRENHEIHT

public static final int TEMPERATURE_FAHRENHEIHT
See Also:
Constant Field Values
Constructor Detail

ConverterUtil

public ConverterUtil()
Method Detail

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)

Liferay 6.1.2-ce-ga3