Class USCustomary

java.lang.Object
tech.units.indriya.AbstractSystemOfUnits
systems.uom.common.USCustomary
All Implemented Interfaces:
javax.measure.spi.SystemOfUnits, tech.uom.lib.common.function.Nameable

public final class USCustomary
extends tech.units.indriya.AbstractSystemOfUnits

This class contains units from the United States customary system.

Since:
0.3
Version:
2.2, May 21, 2021
Author:
Jean-Marie Dautelle, Werner Keil
See Also:
Wikipedia: United State Customary Units, Wikipedia: United State Customary Units
  • Nested Class Summary

    Nested classes/interfaces inherited from class tech.units.indriya.AbstractSystemOfUnits

    tech.units.indriya.AbstractSystemOfUnits.Helper
  • Field Summary

    Fields
    Modifier and Type Field Description
    static javax.measure.Unit<javax.measure.quantity.Area> ACRE
    The acre is a unit of area used in the imperial and U.S. customary systems.
    static javax.measure.Unit<javax.measure.quantity.Volume> ACRE_FOOT
    An acre-foot is a unit of volume commonly used in the United States in reference to large-scale water resources, such as reservoirs, aqueducts, canals, sewer flow capacity, irrigation water, and river flows.
    static javax.measure.Unit<javax.measure.quantity.Area> ARE
    A unit of area equal to 100 m² (standard name a ).
    static javax.measure.Unit<javax.measure.quantity.Volume> BARREL
    A unit of volume equal to 238.4810 LITER (standard name bbl).
    static javax.measure.Unit<javax.measure.quantity.Angle> CENTIRADIAN
    A unit of angle equal to 0.01 SI#RADIAN (standard name centiradian).
    static javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_FOOT
    The cubic foot is an imperial and US customary (non-metric) unit of volume, used in the United States, Canada, and the United Kingdom.
    static javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_INCH
    A unit of volume equal to one cubic inch (in³).
    static javax.measure.Unit<javax.measure.quantity.Volume> CUP
    The cup is a unit of measurement for volume, used in cooking to measure liquids (fluid measurement) and bulk foods such as granulated sugar (dry measurement).
    static javax.measure.Unit<javax.measure.quantity.Angle> DEGREE_ANGLE
    A unit of angle equal to 1/360 REVOLUTION (standard name deg).
    static javax.measure.Unit<javax.measure.quantity.Power> ELECTRICAL_HORSEPOWER
    Nameplates on electrical motors show their power output, not the power input (the power delivered at the shaft, not the power consumed to drive the motor).
    static javax.measure.Unit<javax.measure.quantity.Energy> ELECTRON_VOLT
    A unit of energy equal to one electron-volt (standard name eV, also recognized keV, MeV, GeV).
    static javax.measure.Unit<javax.measure.quantity.Temperature> FAHRENHEIT
    A unit of temperature equal to degree Rankine minus 459.67 °R (standard name °F).
    static javax.measure.Unit<javax.measure.quantity.Volume> FLUID_DRAM
    A unit of volume equal to 60 MINIM (standard name fl dr).
    static javax.measure.Unit<javax.measure.quantity.Volume> FLUID_OUNCE
    A unit of volume equal to 1 / 128 GALLON_LIQUID (standard name oz_fl).
    static javax.measure.Unit<javax.measure.quantity.Length> FOOT
    A unit of length equal to 0.3048 m (standard name ft).
    static javax.measure.Unit<javax.measure.quantity.Speed> FOOT_PER_SECOND
    A unit of velocity expressing the number of feet per second.
    static javax.measure.Unit<javax.measure.quantity.Length> FOOT_SURVEY
    A unit of length equal to 1200/3937 m (standard name foot_survey_us).
    static javax.measure.Unit<javax.measure.quantity.Volume> GALLON_DRY
    A unit of volume equal to one US dry gallon.
    static javax.measure.Unit<javax.measure.quantity.Volume> GALLON_LIQUID
    A unit of volume equal to one US gallon, Liquid Unit.
    static javax.measure.Unit<javax.measure.quantity.Volume> GILL_LIQUID
    A unit of volume equal to 4 US oz_fl (standard name liq.gi).
    static javax.measure.Unit<javax.measure.quantity.Angle> GRADE
    A unit of angle measure equal to 1/400 REVOLUTION (standard name grade ).
    static javax.measure.Unit<javax.measure.quantity.Area> HECTARE
    A unit of area equal to 100 ARE (standard name ha).
    static javax.measure.Unit<javax.measure.quantity.Power> HORSEPOWER
    Horsepower (hp) is the name of several units of measurement of power.
    static javax.measure.Unit<javax.measure.quantity.Time> HOUR
    A unit of duration equal to 60 MINUTE (standard name h).
    static javax.measure.Unit<javax.measure.quantity.Length> INCH
    A unit of length equal to 0.0254 m (standard name in).
    static javax.measure.Unit<javax.measure.quantity.Speed> KNOT
    A unit of velocity expressing the number of nautical miles per hour (abbreviation kn).
    static javax.measure.Unit<javax.measure.quantity.Length> LIGHT_YEAR
    A unit of length equal to the distance that light travels in one year through a vacuum (standard name ly).
    static javax.measure.Unit<javax.measure.quantity.Volume> LITER
    A unit of volume equal to one cubic decimeter (default label L, also recognized µL, mL, cL, dL).
    static javax.measure.Unit<javax.measure.quantity.Length> METER
    US name for SI#METRE.
    static javax.measure.Unit<javax.measure.quantity.Length> MILE
    A unit of length equal to 1609.344 m (standard name mi).
    static javax.measure.Unit<javax.measure.quantity.Speed> MILE_PER_HOUR
    A unit of velocity expressing the number of international miles per hour (abbreviation mph).
    static javax.measure.Unit<javax.measure.quantity.Volume> MINIM
    A unit of volume ~ 1 drop or 0.95 grain of water (standard name min).
    static javax.measure.Unit<javax.measure.quantity.Time> MINUTE
    A unit of time equal to 60 s (standard name min ).
    static javax.measure.Unit<javax.measure.quantity.Angle> MINUTE_ANGLE
    A unit of angle equal to 1/60 DEGREE_ANGLE (standard name ').
    static javax.measure.Unit<javax.measure.quantity.Length> NAUTICAL_MILE
    A unit of length equal to 1852.0 m (standard name nmi).
    static javax.measure.Unit<javax.measure.quantity.Mass> OUNCE
    A unit of mass equal to 1 / 16 POUND (standard name oz).
    static javax.measure.Unit<javax.measure.quantity.Volume> PINT
    A unit of volume equal to 4 GILL_LIQUID (standard name pt).
    static javax.measure.Unit<javax.measure.quantity.Mass> POUND
    A unit of mass equal to 453.59237 grams (avoirdupois pound, standard name lb).
    static javax.measure.Unit<javax.measure.quantity.Temperature> RANKINE
    A unit of temperature equal to 5/9 °K (standard name °R).
    static javax.measure.Unit<javax.measure.quantity.Angle> REVOLUTION
    A unit of angle equal to a full circle or 2π SI#RADIAN (standard name rev).
    static javax.measure.Unit<si.uom.quantity.AngularSpeed> REVOLUTION_PER_MINUTE
    Revolutions per minute (abbreviated rpm, RPM, rev/min, r/min, or with the notation min−1) is the number of turns in one minute.
    static javax.measure.Unit<javax.measure.quantity.Angle> SECOND_ANGLE
    A unit of angle equal to 1/60 MINUTE_ANGLE (standard name ").
    static javax.measure.Unit<javax.measure.quantity.Area> SQUARE_FOOT
    A unit of area (standard name sft ).
    static javax.measure.Unit<javax.measure.quantity.Volume> TABLESPOON
    A unit of volume equal to 3 TEASPOON (standard name Tbsp).
    static javax.measure.Unit<javax.measure.quantity.Volume> TEASPOON
    A unit of volume equal to 80 MINIM (standard name tsp).
    static javax.measure.Unit<javax.measure.quantity.Mass> TON
    A unit of mass equal to 2000 POUND (short ton, standard name ton).
    static javax.measure.Unit<javax.measure.quantity.Length> YARD
    A unit of length equal to 0.9144 m (standard name yd).

    Fields inherited from class tech.units.indriya.AbstractSystemOfUnits

    E, logger, quantityToUnit, units
  • Method Summary

    Modifier and Type Method Description
    static javax.measure.spi.SystemOfUnits getInstance()
    Returns the unique instance of this class.
    String getName()  

    Methods inherited from class tech.units.indriya.AbstractSystemOfUnits

    getUnit, getUnit, getUnit, getUnit, getUnits, getUnits

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • METER

      public static final javax.measure.Unit<javax.measure.quantity.Length> METER
      US name for SI#METRE.
    • FOOT_SURVEY

      public static final javax.measure.Unit<javax.measure.quantity.Length> FOOT_SURVEY
      A unit of length equal to 1200/3937 m (standard name foot_survey_us). See also: foot
    • YARD

      public static final javax.measure.Unit<javax.measure.quantity.Length> YARD
      A unit of length equal to 0.9144 m (standard name yd).
    • INCH

      public static final javax.measure.Unit<javax.measure.quantity.Length> INCH
      A unit of length equal to 0.0254 m (standard name in).
    • MILE

      public static final javax.measure.Unit<javax.measure.quantity.Length> MILE
      A unit of length equal to 1609.344 m (standard name mi).
    • LIGHT_YEAR

      public static final javax.measure.Unit<javax.measure.quantity.Length> LIGHT_YEAR
      A unit of length equal to the distance that light travels in one year through a vacuum (standard name ly).
    • NAUTICAL_MILE

      public static final javax.measure.Unit<javax.measure.quantity.Length> NAUTICAL_MILE
      A unit of length equal to 1852.0 m (standard name nmi).
    • POUND

      public static final javax.measure.Unit<javax.measure.quantity.Mass> POUND
      A unit of mass equal to 453.59237 grams (avoirdupois pound, standard name lb).
    • OUNCE

      public static final javax.measure.Unit<javax.measure.quantity.Mass> OUNCE
      A unit of mass equal to 1 / 16 POUND (standard name oz).
    • TON

      public static final javax.measure.Unit<javax.measure.quantity.Mass> TON
      A unit of mass equal to 2000 POUND (short ton, standard name ton).
    • RANKINE

      public static final javax.measure.Unit<javax.measure.quantity.Temperature> RANKINE
      A unit of temperature equal to 5/9 °K (standard name °R).
    • FAHRENHEIT

      public static final javax.measure.Unit<javax.measure.quantity.Temperature> FAHRENHEIT
      A unit of temperature equal to degree Rankine minus 459.67 °R (standard name °F).
      See Also:
      RANKINE
    • REVOLUTION

      public static final javax.measure.Unit<javax.measure.quantity.Angle> REVOLUTION
      A unit of angle equal to a full circle or 2π SI#RADIAN (standard name rev).
    • DEGREE_ANGLE

      public static final javax.measure.Unit<javax.measure.quantity.Angle> DEGREE_ANGLE
      A unit of angle equal to 1/360 REVOLUTION (standard name deg).
    • MINUTE_ANGLE

      public static final javax.measure.Unit<javax.measure.quantity.Angle> MINUTE_ANGLE
      A unit of angle equal to 1/60 DEGREE_ANGLE (standard name ').
    • SECOND_ANGLE

      public static final javax.measure.Unit<javax.measure.quantity.Angle> SECOND_ANGLE
      A unit of angle equal to 1/60 MINUTE_ANGLE (standard name ").
    • CENTIRADIAN

      public static final javax.measure.Unit<javax.measure.quantity.Angle> CENTIRADIAN
      A unit of angle equal to 0.01 SI#RADIAN (standard name centiradian).
    • GRADE

      public static final javax.measure.Unit<javax.measure.quantity.Angle> GRADE
      A unit of angle measure equal to 1/400 REVOLUTION (standard name grade ).
    • MINUTE

      public static final javax.measure.Unit<javax.measure.quantity.Time> MINUTE
      A unit of time equal to 60 s (standard name min ).
    • HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Time> HOUR
      A unit of duration equal to 60 MINUTE (standard name h).
    • FOOT_PER_SECOND

      public static final javax.measure.Unit<javax.measure.quantity.Speed> FOOT_PER_SECOND
      A unit of velocity expressing the number of feet per second.
      Since:
      0.5.1
    • MILE_PER_HOUR

      public static final javax.measure.Unit<javax.measure.quantity.Speed> MILE_PER_HOUR
      A unit of velocity expressing the number of international miles per hour (abbreviation mph).
    • KNOT

      public static final javax.measure.Unit<javax.measure.quantity.Speed> KNOT
      A unit of velocity expressing the number of nautical miles per hour (abbreviation kn).
    • SQUARE_FOOT

      public static final javax.measure.Unit<javax.measure.quantity.Area> SQUARE_FOOT
      A unit of area (standard name sft ).
    • ARE

      public static final javax.measure.Unit<javax.measure.quantity.Area> ARE
      A unit of area equal to 100 m² (standard name a ).
    • HECTARE

      public static final javax.measure.Unit<javax.measure.quantity.Area> HECTARE
      A unit of area equal to 100 ARE (standard name ha).
    • ACRE

      public static final javax.measure.Unit<javax.measure.quantity.Area> ACRE
      The acre is a unit of area used in the imperial and U.S. customary systems. It is equivalent to 43,560 square feet. An acre is about 40% of a HECTARE – slightly smaller than an American football field. (standard name ac ).
      See Also:
      Wikipedia: Acre
    • ELECTRON_VOLT

      public static final javax.measure.Unit<javax.measure.quantity.Energy> ELECTRON_VOLT
      A unit of energy equal to one electron-volt (standard name eV, also recognized keV, MeV, GeV).
    • HORSEPOWER

      public static final javax.measure.Unit<javax.measure.quantity.Power> HORSEPOWER
      Horsepower (hp) is the name of several units of measurement of power. The most common definitions equal between 735.5 and 750 watts. Horsepower was originally defined to compare the output of steam engines with the power of draft horses. The unit was widely adopted to measure the output of piston engines, turbines, electric motors, and other machinery. The definition of the unit varied between geographical regions. Most countries now use the SI unit watt for measurement of power. With the implementation of the EU Directive 80/181/EEC on January 1, 2010, the use of horsepower in the EU is only permitted as supplementary unit.
    • ELECTRICAL_HORSEPOWER

      public static final javax.measure.Unit<javax.measure.quantity.Power> ELECTRICAL_HORSEPOWER
      Nameplates on electrical motors show their power output, not the power input (the power delivered at the shaft, not the power consumed to drive the motor).
      This power output is ordinarily stated in watts or kilowatts. In the United States, the power output is stated in horsepower, which for this purpose is defined as exactly 746 W.
    • LITER

      public static final javax.measure.Unit<javax.measure.quantity.Volume> LITER
      A unit of volume equal to one cubic decimeter (default label L, also recognized µL, mL, cL, dL).
    • CUBIC_INCH

      public static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_INCH
      A unit of volume equal to one cubic inch (in³).
    • CUBIC_FOOT

      public static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_FOOT
      The cubic foot is an imperial and US customary (non-metric) unit of volume, used in the United States, Canada, and the United Kingdom. It is defined as the volume of a cube with sides of one foot (0.3048 m) in length. Its volume is 28.3168 liters or about 1⁄35 of a cubic meter. ( ft³).
    • ACRE_FOOT

      public static final javax.measure.Unit<javax.measure.quantity.Volume> ACRE_FOOT
      An acre-foot is a unit of volume commonly used in the United States in reference to large-scale water resources, such as reservoirs, aqueducts, canals, sewer flow capacity, irrigation water, and river flows.
    • GALLON_DRY

      public static final javax.measure.Unit<javax.measure.quantity.Volume> GALLON_DRY
      A unit of volume equal to one US dry gallon. (standard name gallon_dry_us).
    • GALLON_LIQUID

      public static final javax.measure.Unit<javax.measure.quantity.Volume> GALLON_LIQUID
      A unit of volume equal to one US gallon, Liquid Unit. The U.S. liquid gallon is based on the Queen Anne or Wine gallon occupying 231 cubic inches (standard name gal).
    • FLUID_OUNCE

      public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_OUNCE
      A unit of volume equal to 1 / 128 GALLON_LIQUID (standard name oz_fl).
    • GILL_LIQUID

      public static final javax.measure.Unit<javax.measure.quantity.Volume> GILL_LIQUID
      A unit of volume equal to 4 US oz_fl (standard name liq.gi).
    • MINIM

      public static final javax.measure.Unit<javax.measure.quantity.Volume> MINIM
      A unit of volume ~ 1 drop or 0.95 grain of water (standard name min).
    • FLUID_DRAM

      public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_DRAM
      A unit of volume equal to 60 MINIM (standard name fl dr).
    • CUP

      public static final javax.measure.Unit<javax.measure.quantity.Volume> CUP
      The cup is a unit of measurement for volume, used in cooking to measure liquids (fluid measurement) and bulk foods such as granulated sugar (dry measurement). A cup is equal to 8 FLUID_OUNCE (standard name cup).
    • TEASPOON

      public static final javax.measure.Unit<javax.measure.quantity.Volume> TEASPOON
      A unit of volume equal to 80 MINIM (standard name tsp).
    • TABLESPOON

      public static final javax.measure.Unit<javax.measure.quantity.Volume> TABLESPOON
      A unit of volume equal to 3 TEASPOON (standard name Tbsp).
    • BARREL

      public static final javax.measure.Unit<javax.measure.quantity.Volume> BARREL
      A unit of volume equal to 238.4810 LITER (standard name bbl).
    • PINT

      public static final javax.measure.Unit<javax.measure.quantity.Volume> PINT
      A unit of volume equal to 4 GILL_LIQUID (standard name pt).
    • REVOLUTION_PER_MINUTE

      public static final javax.measure.Unit<si.uom.quantity.AngularSpeed> REVOLUTION_PER_MINUTE
      Revolutions per minute (abbreviated rpm, RPM, rev/min, r/min, or with the notation min−1) is the number of turns in one minute. It is a unit of rotational speed or the frequency of rotation around a fixed axis.
      Since:
      2.1
      See Also:
      Wikipedia: Revolutions per minute
  • Method Details

    • getInstance

      public static javax.measure.spi.SystemOfUnits getInstance()
      Returns the unique instance of this class.
      Returns:
      the USCustomary instance.
    • getName

      public String getName()
      Specified by:
      getName in interface tech.uom.lib.common.function.Nameable
      Specified by:
      getName in interface javax.measure.spi.SystemOfUnits
      Specified by:
      getName in class tech.units.indriya.AbstractSystemOfUnits