@Alex Ljunggren Alex Ljunggren authored on 25 Sep 2024
src Changed package name 2 years ago
.gitignore Initial commit 5 years ago
README.md Added stone to mass 5 years ago
lombok.config Initial commit 5 years ago
pom.xml Changed package name 2 years ago
README.md

Unit Converter

Instantiate

Converter converter = new LengthConverter().fromFeet().toMeters();

Convert

converter.convert(3.5);

Get unit label

converter.label();

Area

new AreaConverter().fromSquareFeet().toSquareMeters();

Units (US)

  • Square Feet
  • Acres

Units (SI)

  • Square Meters

Force

new ForceConverter().fromNewtons().toPoundForce();

Units (US)

  • Pounds (force)

Units (SI)

  • Newtons

Length

new LengthConverter().fromFeet().toMeters();

Units (US)

  • Inches
  • Feet
  • Yards
  • Miles
  • Light Years
  • Parsecs

Units (SI)

  • Millimeters
  • Centimeters
  • Decimeters
  • Meters
  • Kilometers

Mass

new MassConverter().fromGrams().toPounds();

Units (US)

  • Ounces
  • Pounds
  • Stones

Units (SI)

  • Grams
  • Kilograms

Speed

new SpeedConverter().fromMilesPerHour().toSpeedOfLight();

Units (US)

  • Feet per second
  • Miles per hour
  • Knots

Units (SI)

  • Meters per second
  • Kilometers per hour
  • Speed of light

Temperature

new TemperatureConverter().fromCelsius().toFahrenheit();

Units (US)

  • Fahrenheit

Units (SI)

  • Celsius
  • Kelvin

Volume

new VolumeConverter().fromGallons().toLiters();

Units (US)

  • Teaspoons
  • Tablespoons
  • Fluid Ounces
  • Cups
  • Pints
  • Quarts
  • Gallons

Units (SI)

  • Milliliters
  • Liters
  • Cubic Centimeters
  • Cubic Meters