@aljunggren aljunggren authored on 19 Nov 2021
src Added weight unit tests 5 years ago
.gitignore Initial commit 5 years ago
README.md Added weight converstion 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();

Units (US)

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

Units (SI)

  • Millimeters
  • Centimeters
  • Decimeters
  • Meters
  • Kilometers

Area

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

Units (US)

  • Square Feet
  • Acres

Units (SI)

  • Square Meters

Volume

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

Units (US)

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

Units (SI)

  • Milliliters
  • Liters
  • Cubic Centimeters
  • Cubic Meters

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

Force

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

Units (US)

  • Pounds (force)

Units (SI)

  • Newtons

Weight

new WeightConverter().fromOunces().toPounds();

Units (US)

  • Pounds

Units (SI)

  • Ounces