com.jeffpalm.util
Class Conversion

java.lang.Object
  extended by com.jeffpalm.util.Conversion

public final class Conversion
extends java.lang.Object


Field Summary
static double ACRES_TO_HECTARES
           
static double CENTIMETERS_TO_INCHES
           
static double CUBICFEET_TO_CUBICMETERS
           
static double CUBICMETERS_TO_CUBICFEET
           
static double CUBICMETERS_TO_CUBICYARDS
           
static double CUBICYARDS_TO_CUBICMETERS
           
static double CUPS_TO_LITERS
           
static double FLUIDOUNCES_TO_MILLILITERS
           
static double FOOT_TO_CENTIMETERS
           
static double GALLONS_TO_LITERS
           
static double GRAMS_TO_OUNCES
           
static double HECTARES_TO_ACRES
           
static double INCHES_TO_CENTIMETERS
           
static double KILOGRAMS_TO_POUNDS
           
static double KILOMETERS_TO_MILES
           
static double LITERS_TO_GALLONS
           
static double LITERS_TO_PINTS
           
static double LITERS_TO_QUARTS
           
static double METERS_TO_FEET
           
static double METRICTONS_TO_SHORTTONS
           
static double MILES_TO_KILOMETERS
           
static double MILLILITERS_TO_FLUIDOUNCES
           
static double MILLIMETERS_TO_INCHES
           
static double OUNCES_TO_GRAMS
           
static double PINTS_TO_LITERS
           
static double POUNDS_TO_KILOGRAMS
           
static double QUARTS_TO_LITERS
           
static double SHORTTONS_TO_METRICTTONS
           
static double sq_TO_INCHES_SQ_centimeters
           
static double SQCENTIMETERS_TO_SQINCHES
           
static double SQFEET_TO_SQMETERS
           
static double SQKILOMETERS_TO_SQMILES
           
static double SQMETERS_TO_SQYARDS
           
static double SQMILES_TO_SQKILOMETERS
           
static double SQYARDS_TO_SQMETERS
           
static double TABLESPOONS_TO_MILLILITERS
           
static double TEASPOONS_TO_MILLILITERS
           
static double YARDS_TO_METERS
           
 
Method Summary
 double acres2hectares(double v)
           
static double celsius2fahrenheit(double c)
           
 double centimeters(double v)
           
 double centimeters2inches(double v)
           
 double cubicFeet2cubicMeters(double v)
           
 double cubicYards2cubicMeters(double v)
           
 double cups2liters(double v)
           
static double fahrenheit2celsius(double f)
           
 double feet(double v)
           
 double foot2centimeters(double v)
           
 double gallons2liters(double v)
           
static Conversion getInstance()
           
 double grams2ounces(double v)
           
 double hectares2acres(double v)
           
 double inches(double v)
           
 double inches2centimeters(double v)
           
 double kilograms2pounds(double v)
           
 double kilometers(double v)
           
 double kilometers2miles(double v)
           
 double liters2gallons(double v)
           
 double liters2pints(double v)
           
 double liters2quarts(double v)
           
 double meters(double v)
           
 double meters2feet(double v)
           
 double miles(double v)
           
 double miles2kilometers(double v)
           
 double millimeters2inches(double v)
           
 double ounces(double v)
           
 double ounces2grams(double v)
           
 double ounces2milliliters(double v)
           
 double pints2liters(double v)
           
 double pounds2kilograms(double v)
           
 double quarts2liters(double v)
           
 double sqMeters2sqYards(double v)
           
 double sqYards2sqMeters(double v)
           
 double tablespoons2milliliters(double v)
           
 double teaspoons2milliliters(double v)
           
 double ton(double v)
           
 double tons(double v)
           
 double yards(double v)
           
 double yards2meters(double v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCHES_TO_CENTIMETERS

public static final double INCHES_TO_CENTIMETERS
See Also:
Constant Field Values

MILLIMETERS_TO_INCHES

public static final double MILLIMETERS_TO_INCHES
See Also:
Constant Field Values

FOOT_TO_CENTIMETERS

public static final double FOOT_TO_CENTIMETERS
See Also:
Constant Field Values

CENTIMETERS_TO_INCHES

public static final double CENTIMETERS_TO_INCHES
See Also:
Constant Field Values

YARDS_TO_METERS

public static final double YARDS_TO_METERS
See Also:
Constant Field Values

METERS_TO_FEET

public static final double METERS_TO_FEET
See Also:
Constant Field Values

MILES_TO_KILOMETERS

public static final double MILES_TO_KILOMETERS
See Also:
Constant Field Values

KILOMETERS_TO_MILES

public static final double KILOMETERS_TO_MILES
See Also:
Constant Field Values

sq_TO_INCHES_SQ_centimeters

public static final double sq_TO_INCHES_SQ_centimeters
See Also:
Constant Field Values

SQCENTIMETERS_TO_SQINCHES

public static final double SQCENTIMETERS_TO_SQINCHES
See Also:
Constant Field Values

SQFEET_TO_SQMETERS

public static final double SQFEET_TO_SQMETERS
See Also:
Constant Field Values

SQMETERS_TO_SQYARDS

public static final double SQMETERS_TO_SQYARDS
See Also:
Constant Field Values

SQYARDS_TO_SQMETERS

public static final double SQYARDS_TO_SQMETERS
See Also:
Constant Field Values

SQKILOMETERS_TO_SQMILES

public static final double SQKILOMETERS_TO_SQMILES
See Also:
Constant Field Values

SQMILES_TO_SQKILOMETERS

public static final double SQMILES_TO_SQKILOMETERS
See Also:
Constant Field Values

HECTARES_TO_ACRES

public static final double HECTARES_TO_ACRES
See Also:
Constant Field Values

ACRES_TO_HECTARES

public static final double ACRES_TO_HECTARES
See Also:
Constant Field Values

OUNCES_TO_GRAMS

public static final double OUNCES_TO_GRAMS
See Also:
Constant Field Values

GRAMS_TO_OUNCES

public static final double GRAMS_TO_OUNCES
See Also:
Constant Field Values

POUNDS_TO_KILOGRAMS

public static final double POUNDS_TO_KILOGRAMS
See Also:
Constant Field Values

KILOGRAMS_TO_POUNDS

public static final double KILOGRAMS_TO_POUNDS
See Also:
Constant Field Values

SHORTTONS_TO_METRICTTONS

public static final double SHORTTONS_TO_METRICTTONS
See Also:
Constant Field Values

METRICTONS_TO_SHORTTONS

public static final double METRICTONS_TO_SHORTTONS
See Also:
Constant Field Values

TEASPOONS_TO_MILLILITERS

public static final double TEASPOONS_TO_MILLILITERS
See Also:
Constant Field Values

MILLILITERS_TO_FLUIDOUNCES

public static final double MILLILITERS_TO_FLUIDOUNCES
See Also:
Constant Field Values

TABLESPOONS_TO_MILLILITERS

public static final double TABLESPOONS_TO_MILLILITERS
See Also:
Constant Field Values

LITERS_TO_PINTS

public static final double LITERS_TO_PINTS
See Also:
Constant Field Values

FLUIDOUNCES_TO_MILLILITERS

public static final double FLUIDOUNCES_TO_MILLILITERS
See Also:
Constant Field Values

LITERS_TO_QUARTS

public static final double LITERS_TO_QUARTS
See Also:
Constant Field Values

CUPS_TO_LITERS

public static final double CUPS_TO_LITERS
See Also:
Constant Field Values

LITERS_TO_GALLONS

public static final double LITERS_TO_GALLONS
See Also:
Constant Field Values

PINTS_TO_LITERS

public static final double PINTS_TO_LITERS
See Also:
Constant Field Values

CUBICMETERS_TO_CUBICFEET

public static final double CUBICMETERS_TO_CUBICFEET
See Also:
Constant Field Values

QUARTS_TO_LITERS

public static final double QUARTS_TO_LITERS
See Also:
Constant Field Values

CUBICMETERS_TO_CUBICYARDS

public static final double CUBICMETERS_TO_CUBICYARDS
See Also:
Constant Field Values

GALLONS_TO_LITERS

public static final double GALLONS_TO_LITERS
See Also:
Constant Field Values

CUBICFEET_TO_CUBICMETERS

public static final double CUBICFEET_TO_CUBICMETERS
See Also:
Constant Field Values

CUBICYARDS_TO_CUBICMETERS

public static final double CUBICYARDS_TO_CUBICMETERS
See Also:
Constant Field Values
Method Detail

getInstance

public static Conversion getInstance()

inches2centimeters

public double inches2centimeters(double v)

millimeters2inches

public double millimeters2inches(double v)

foot2centimeters

public double foot2centimeters(double v)

centimeters2inches

public double centimeters2inches(double v)

yards2meters

public double yards2meters(double v)

meters2feet

public double meters2feet(double v)

miles2kilometers

public double miles2kilometers(double v)

kilometers2miles

public double kilometers2miles(double v)

centimeters

public double centimeters(double v)

inches

public double inches(double v)

meters

public double meters(double v)

sqMeters2sqYards

public double sqMeters2sqYards(double v)

sqYards2sqMeters

public double sqYards2sqMeters(double v)

miles

public double miles(double v)

kilometers

public double kilometers(double v)

hectares2acres

public double hectares2acres(double v)

acres2hectares

public double acres2hectares(double v)

ounces2grams

public double ounces2grams(double v)

grams2ounces

public double grams2ounces(double v)

pounds2kilograms

public double pounds2kilograms(double v)

kilograms2pounds

public double kilograms2pounds(double v)

ton

public double ton(double v)

tons

public double tons(double v)

teaspoons2milliliters

public double teaspoons2milliliters(double v)

ounces

public double ounces(double v)

tablespoons2milliliters

public double tablespoons2milliliters(double v)

liters2pints

public double liters2pints(double v)

ounces2milliliters

public double ounces2milliliters(double v)

liters2quarts

public double liters2quarts(double v)

cups2liters

public double cups2liters(double v)

liters2gallons

public double liters2gallons(double v)

pints2liters

public double pints2liters(double v)

feet

public double feet(double v)

quarts2liters

public double quarts2liters(double v)

yards

public double yards(double v)

gallons2liters

public double gallons2liters(double v)

cubicFeet2cubicMeters

public double cubicFeet2cubicMeters(double v)

cubicYards2cubicMeters

public double cubicYards2cubicMeters(double v)

fahrenheit2celsius

public static final double fahrenheit2celsius(double f)

celsius2fahrenheit

public static final double celsius2fahrenheit(double c)