public final class Imperial
extends tec.uom.se.AbstractSystemOfUnits
This class contains units from the Imperial system.
Modifier and Type | Field and Description |
---|---|
static javax.measure.Unit<javax.measure.quantity.Area> |
ACRE
One acre is 43,560
square feet (standard name a
). |
(package private) static int |
AVOIRDUPOIS_POUND_DIVIDEND
Holds the avoirdupois pound: 0.45359237 kg exact
|
(package private) static int |
AVOIRDUPOIS_POUND_DIVISOR |
(package private) static javax.measure.Unit<javax.measure.quantity.Volume> |
CUBIC_INCH
A unit of volume equal to one cubic inch (
in³ ). |
(package private) 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_DRACHM
A unit of volume equal to
3 (standard
name fl drc ). |
static javax.measure.Unit<javax.measure.quantity.Volume> |
FLUID_SCRUPLE
A unit of volume equal to
20 (standard name
fl scr ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Acceleration> |
G
A unit of acceleration equal to the gravity at the earth's surface
(standard name
grav ). |
static javax.measure.Unit<javax.measure.quantity.Volume> |
GALLON_UK
A unit of volume equal to
4.546 09 (standard
name gal_uk ). |
static javax.measure.Unit<javax.measure.quantity.Volume> |
GILL
A unit of volume equal to
5 (standard
name gi ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Time> |
HOUR
A unit of duration equal to
60 (standard
name h ). |
static javax.measure.Unit<javax.measure.quantity.Length> |
INCH
A unit of length equal to
0.0254 m (standard name
in ). |
private static Imperial |
INSTANCE |
(package private) static javax.measure.Unit<javax.measure.quantity.Force> |
KILOGRAM_FORCE
A unit of force equal to
9.80665 N (standard name
kgf ). |
(package private) 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 ). |
(package private) 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.Mass> |
OUNCE
A unit of mass equal to
1 / 16 (standard name
oz ). |
static javax.measure.Unit<javax.measure.quantity.Volume> |
OUNCE_LIQUID
A unit of volume equal to
1 / 160
(standard name oz_fl ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Volume> |
OUNCE_LIQUID_UK
A unit of volume equal to
1 / 160
(standard name oz_fl_uk ). |
static javax.measure.Unit<javax.measure.quantity.Volume> |
PINT
A unit of volume equal to
20 (standard
name pt ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Mass> |
POUND
A unit of mass equal to
453.59237 grams (avoirdupois pound,
standard name lb ). |
(package private) static javax.measure.Unit<javax.measure.quantity.Force> |
POUND_FORCE
|
static javax.measure.Unit<javax.measure.quantity.Volume> |
QUART
A unit of volume equal to
40 (standard
name qt ). |
(package private) 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.Area> |
SQUARE_FOOT
A unit of area (standard name
sft ). |
private static int |
STANDARD_GRAVITY_DIVIDEND
Holds the standard gravity constant: 9.80665 m/s² exact.
|
private static int |
STANDARD_GRAVITY_DIVISOR |
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 (long ton,
standard name ton_uk ). |
Modifier | Constructor and Description |
---|---|
private |
Imperial()
Default constructor (prevents this class from being instantiated).
|
Modifier and Type | Method and Description |
---|---|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit)
Adds a new unit not mapped to any specified quantity type.
|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit,
java.lang.String text)
Adds a new unit not mapped to any specified quantity type and puts a text
as label.
|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit,
java.lang.String text,
boolean isLabel)
Adds a new unit not mapped to any specified quantity type and puts a text
as symbol or label.
|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit,
java.lang.String name,
java.lang.String label)
Adds a new unit not mapped to any specified quantity type and puts a text
as symbol or label.
|
private static <U extends javax.measure.Unit<?>> |
addUnit(U unit,
java.lang.String name,
java.lang.String text,
boolean isLabel)
Adds a new unit not mapped to any specified quantity type and puts a text
as symbol or label.
|
static javax.measure.spi.SystemOfUnits |
getInstance()
Returns the unique instance of this class.
|
java.lang.String |
getName() |
static final int AVOIRDUPOIS_POUND_DIVIDEND
static final int AVOIRDUPOIS_POUND_DIVISOR
private static final int STANDARD_GRAVITY_DIVIDEND
private static final int STANDARD_GRAVITY_DIVISOR
private static final Imperial INSTANCE
public static final javax.measure.Unit<javax.measure.quantity.Length> INCH
0.0254 m
(standard name
in
).static final javax.measure.Unit<javax.measure.quantity.Mass> POUND
453.59237 grams
(avoirdupois pound,
standard name lb
).public static final javax.measure.Unit<javax.measure.quantity.Mass> STONE
st
).public static final javax.measure.Unit<javax.measure.quantity.Mass> OUNCE
1 / 16 POUND
(standard name
oz
).public static final javax.measure.Unit<javax.measure.quantity.Mass> TON_UK
2240 POUND
(long ton,
standard name ton_uk
).public static final javax.measure.Unit<javax.measure.quantity.Mass> METRIC_TON
1000 kg
(metric ton, standard name
t
).static final javax.measure.Unit<javax.measure.quantity.Temperature> RANKINE
5/9 °K
(standard name
°R
).static final javax.measure.Unit<javax.measure.quantity.Temperature> FAHRENHEIT
459.67 °R
(standard name °F
).RANKINE
static final javax.measure.Unit<javax.measure.quantity.Time> MINUTE
60 s
(standard name min
).static final javax.measure.Unit<javax.measure.quantity.Time> HOUR
60 MINUTE
(standard
name h
).static final javax.measure.Unit<javax.measure.quantity.Acceleration> G
grav
).public static final javax.measure.Unit<javax.measure.quantity.Area> SQUARE_FOOT
sft
).public static final javax.measure.Unit<javax.measure.quantity.Area> ACRE
square feet
(standard name a
).static final javax.measure.Unit<javax.measure.quantity.Volume> LITRE
L
, also recognized µL, mL, cL, dL
).static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_INCH
in³
).public static final javax.measure.Unit<javax.measure.quantity.Volume> GALLON_UK
4.546 09 LITRE
(standard
name gal_uk
).static final javax.measure.Unit<javax.measure.quantity.Volume> OUNCE_LIQUID_UK
1 / 160 GALLON_UK
(standard name oz_fl_uk
).public static final javax.measure.Unit<javax.measure.quantity.Volume> OUNCE_LIQUID
1 / 160 #GALLON_LIQUID
(standard name oz_fl
).public static final javax.measure.Unit<javax.measure.quantity.Volume> GILL
5 OUNCE_LIQUID
(standard
name gi
).public static final javax.measure.Unit<javax.measure.quantity.Volume> PINT
20 OUNCE_LIQUID
(standard
name pt
).public static final javax.measure.Unit<javax.measure.quantity.Volume> QUART
40 OUNCE_LIQUID
(standard
name qt
).public static final javax.measure.Unit<javax.measure.quantity.Volume> MINIM
~ 1 drop or 0.95 grain of water
(standard
name min
).public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_SCRUPLE
20 MINIM
(standard name
fl scr
).public static final javax.measure.Unit<javax.measure.quantity.Volume> FLUID_DRACHM
3 FLUID_SCRUPLE
(standard
name fl drc
).static final javax.measure.Unit<javax.measure.quantity.Force> POUND_FORCE
static final javax.measure.Unit<javax.measure.quantity.Force> KILOGRAM_FORCE
9.80665 N
(standard name
kgf
).private Imperial()
public static javax.measure.spi.SystemOfUnits getInstance()
private static <U extends javax.measure.Unit<?>> U addUnit(U unit)
unit
- the unit being added.unit
.private static <U extends javax.measure.Unit<?>> U addUnit(U unit, java.lang.String name, java.lang.String text, boolean isLabel)
unit
- the unit being added.name
- the string to use as nametext
- the string to use as label or symbolisLabel
- if the string should be used as a label or notunit
.private static <U extends javax.measure.Unit<?>> U addUnit(U unit, java.lang.String name, java.lang.String label)
unit
- the unit being added.name
- the string to use as namelabel
- the string to use as labelunit
.private static <U extends javax.measure.Unit<?>> U addUnit(U unit, java.lang.String text, boolean isLabel)
unit
- the unit being added.text
- the string to use as label or symbolisLabel
- if the string should be used as a label or notunit
.private static <U extends javax.measure.Unit<?>> U addUnit(U unit, java.lang.String text)
unit
- the unit being added.text
- the string to use as label or symbolunit
.public java.lang.String getName()
getName
in interface javax.measure.spi.SystemOfUnits
getName
in interface tec.uom.lib.common.function.Nameable
getName
in class tec.uom.se.AbstractSystemOfUnits