Class Imperial

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

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

This class contains units from the Imperial system.

Since:
0.2
Version:
1.1, $Date: 2019-01-21 $
Author:
Werner Keil
See Also:
Wikipedia: Imperial 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
    One acre is 43,560 square feet (standard name ac ).
    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> FLUID_DRACHM
    A unit of volume equal to 3 FLUID_SCRUPLE (standard name fl drc).
    static javax.measure.Unit<javax.measure.quantity.Volume> FLUID_OUNCE
    A unit of volume equal to 1 / 160 #GALLON_LIQUID (standard name fl_oz).
    static javax.measure.Unit<javax.measure.quantity.Volume> FLUID_SCRUPLE
    A unit of volume equal to 20 MINIM (standard name fl scr).
    static javax.measure.Unit<javax.measure.quantity.Volume> GALLON_UK
    A unit of volume equal to 4.546 09 LITRE (standard name gal_uk).
    static javax.measure.Unit<javax.measure.quantity.Volume> GILL
    A unit of volume equal to 5 FLUID_OUNCE (standard name gi).
    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.Volume> LITRE
    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.Mass> METRIC_TON
    A unit of mass equal to 1000 kg (metric ton, standard name t).
    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.Mass> OUNCE
    A unit of mass equal to 1 / 16 POUND (standard name oz).
    static javax.measure.Unit<javax.measure.quantity.Volume> OUNCE_LIQUID
    Deprecated.
    use FLUID_OUNCE
    static javax.measure.Unit<javax.measure.quantity.Volume> PINT
    A unit of volume equal to 20 FLUID_OUNCE (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.Force> POUND_FORCE
    A unit of force equal to POUND·#G (standard name lbf).
    static javax.measure.Unit<javax.measure.quantity.Volume> QUART
    A unit of volume equal to 40 FLUID_OUNCE (standard name qt).
    static javax.measure.Unit<javax.measure.quantity.Area> SQUARE_FOOT
    A unit of area (standard name sft ).
    static javax.measure.Unit<javax.measure.quantity.Mass> STONE
    An English and imperial unit of weight or mass now equal to 14 avoirdupois pounds or 6.35029318 kg (st).
    static javax.measure.Unit<javax.measure.quantity.Mass> TON_UK
    A unit of mass equal to 2240 POUND (long ton, standard name ton_uk).

    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()  
    javax.measure.Unit<?> getUnit​(String string)  

    Methods inherited from class tech.units.indriya.AbstractSystemOfUnits

    getUnit, getUnits, getUnits

    Methods inherited from class java.lang.Object

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

    • INCH

      public static final javax.measure.Unit<javax.measure.quantity.Length> INCH
      A unit of length equal to 0.0254 m (standard name in).
    • 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).
    • STONE

      public static final javax.measure.Unit<javax.measure.quantity.Mass> STONE
      An English and imperial unit of weight or mass now equal to 14 avoirdupois pounds or 6.35029318 kg (st).
    • 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_UK

      public static final javax.measure.Unit<javax.measure.quantity.Mass> TON_UK
      A unit of mass equal to 2240 POUND (long ton, standard name ton_uk).
    • METRIC_TON

      public static final javax.measure.Unit<javax.measure.quantity.Mass> METRIC_TON
      A unit of mass equal to 1000 kg (metric ton, standard name t).
    • SQUARE_FOOT

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

      public static final javax.measure.Unit<javax.measure.quantity.Area> ACRE
      One acre is 43,560 square feet (standard name ac ).
    • LITRE

      public static final javax.measure.Unit<javax.measure.quantity.Volume> LITRE
      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³).
    • GALLON_UK

      public static final javax.measure.Unit<javax.measure.quantity.Volume> GALLON_UK
      A unit of volume equal to 4.546 09 LITRE (standard name gal_uk).
    • FLUID_OUNCE

      public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_OUNCE
      A unit of volume equal to 1 / 160 #GALLON_LIQUID (standard name fl_oz).
    • OUNCE_LIQUID

      public static final javax.measure.Unit<javax.measure.quantity.Volume> OUNCE_LIQUID
      Deprecated.
      use FLUID_OUNCE
      A unit of volume equal to 1 / 160 #GALLON_LIQUID (standard name fl_oz).
    • GILL

      public static final javax.measure.Unit<javax.measure.quantity.Volume> GILL
      A unit of volume equal to 5 FLUID_OUNCE (standard name gi).
    • PINT

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

      public static final javax.measure.Unit<javax.measure.quantity.Volume> QUART
      A unit of volume equal to 40 FLUID_OUNCE (standard name qt).
    • 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_SCRUPLE

      public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_SCRUPLE
      A unit of volume equal to 20 MINIM (standard name fl scr).
    • FLUID_DRACHM

      public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_DRACHM
      A unit of volume equal to 3 FLUID_SCRUPLE (standard name fl drc).
    • POUND_FORCE

      public static final javax.measure.Unit<javax.measure.quantity.Force> POUND_FORCE
      A unit of force equal to POUND·#G (standard name lbf).
  • Method Details

    • getInstance

      public static javax.measure.spi.SystemOfUnits getInstance()
      Returns the unique instance of this class.
      Returns:
      the Imperial 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
    • getUnit

      public javax.measure.Unit<?> getUnit​(String string)
      Specified by:
      getUnit in interface javax.measure.spi.SystemOfUnits
      Overrides:
      getUnit in class tech.units.indriya.AbstractSystemOfUnits