@aljunggren aljunggren authored on 6 Jun 2021
src Moved base conversion numbers to Constants 5 years ago
.gitignore Initial commit 5 years ago
README.md Added Area converter 5 years ago
lombok.config Initial commit 5 years ago
pom.xml Initial commit 5 years ago
README.md

Unit Converter

Instantiate

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

Convert

converter.convert(3.5);

Get unit label

converter.label();

Length

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

Units (US)

  • Inches
  • Feet
  • Yards
  • Miles

Units (SI)

  • Millimeters
  • Centimeters
  • Decimeters
  • Meters
  • Kilometers

Area

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

Units (US)

  • Square Feet

Units (SI) -Square Meters

Volume

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

Units (US)

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

Units (SI)

  • Milliliters
  • Liters
  • Cubic Centimeters
  • Cubic Meters

Force

new ForceConverter().fromNewtons().toPoundForce().convert(1,0);

Units (US)

  • Pounds (force)

Units (SI)

  • Newtons