public class UnitConverterUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TEMPERATURE_CELSIUS |
static int |
TEMPERATURE_FAHRENHEIHT |
| Constructor and Description |
|---|
UnitConverterUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 UnitConverter |
getUnitConverter(int type,
int fromId,
int toId,
double fromValue) |
public static final int TEMPERATURE_CELSIUS
public static final int TEMPERATURE_FAHRENHEIHT
public static double convertArea(int fromId,
int toId,
double fromValue)
public static double convertLength(int fromId,
int toId,
double fromValue)
public static double convertMass(int fromId,
int toId,
double fromValue)
public static double convertTemperature(int fromId,
int toId,
double fromValue)
public static double convertVolume(int fromId,
int toId,
double fromValue)
public static UnitConverter getUnitConverter(int type, int fromId, int toId, double fromValue)