Package javax.measure.unit
Class NonSI
- java.lang.Object
-
- javax.measure.unit.SystemOfUnits
-
- javax.measure.unit.NonSI
-
public final class NonSI extends SystemOfUnits
This class contains units that are not part of the International System of Units, that is, they are outside the SI, but are important and widely used.
-
-
Field Summary
Fields Modifier and Type Field Description static Unit<Length>
ANGSTROM
A unit of length equal to1E-10 m
(standard nameÅ
).static Unit<Area>
ARE
A unit of area equal to100 m²
(standard namea
).static Unit<Length>
ASTRONOMICAL_UNIT
A unit of length equal to the average distance from the center of the Earth to the center of the Sun (standard nameua
).static Unit<Pressure>
ATMOSPHERE
A unit of pressure equal to the average pressure of the Earth's atmosphere at sea level (standard nameatm
).static Unit<AmountOfSubstance>
ATOM
A unit of amount of substance equals to one atom (standard nameatom
).static Unit<Mass>
ATOMIC_MASS
A unit of mass equal to 1/12 the mass of the carbon-12 atom (standard nameu
).static Unit<Pressure>
BAR
A unit of pressure equal to100 kPa
(standard namebar
).static Unit<DataAmount>
BYTE
A unit of data amount equal to8
(BinarY TErm, standard nameSI.BIT
byte
).static Unit<Velocity>
C
A unit of velocity relative to the speed of light (standard namec
).static Unit<Angle>
CENTIRADIAN
A unit of angle equal to0.01
(standard nameSI.RADIAN
centiradian
).static Unit<Length>
COMPUTER_POINT
EquivalentPIXEL
static Unit<Volume>
CUBIC_INCH
A unit of volume equal to one cubic inch (in³
).static Unit<RadioactiveActivity>
CURIE
A unit of radioctive activity equal to the activity of a gram of radium (standard nameCi
).static Unit<Duration>
DAY
A unit of duration equal to24
(standard nameHOUR
d
).static Unit<Duration>
DAY_SIDEREAL
A unit of duration equal to the time required for a complete rotation of the earth in reference to any star or to the vernal equinox at the meridian, equal to 23 hours, 56 minutes, 4.09 seconds (standard nameday_sidereal
).static Unit<Dimensionless>
DECIBEL
A logarithmic unit used to describe a ratio (standard namedB
).static Unit<Angle>
DEGREE_ANGLE
A unit of angle equal to1/360
(standard nameREVOLUTION
°
).static Unit<Force>
DYNE
A unit of force equal to1E-5 N
(standard namedyn
).static Unit<ElectricCharge>
E
A unit of electric charge equal to the charge on one electron (standard namee
).static Unit<Mass>
ELECTRON_MASS
A unit of mass equal to the mass of the electron (standard nameme
).static Unit<Energy>
ELECTRON_VOLT
A unit of energy equal to one electron-volt (standard nameeV
, also recognizedkeV, MeV, GeV
).static Unit<Energy>
ERG
A unit of energy equal to1E-7 J
(standard nameerg
).static Unit<Temperature>
FAHRENHEIT
A unit of temperature equal to degree Rankine minus459.67 °R
(standard name°F
).static Unit<ElectricCharge>
FARADAY
A unit of electric charge equal to equal to the product of Avogadro's number (seeSI.MOLE
) and the charge (1 e) on a single electron (standard nameFd
).static Unit<Length>
FOOT
A unit of length equal to0.3048 m
(standard nameft
).static Unit<Length>
FOOT_SURVEY_US
A unit of length equal to1200/3937 m
(standard namefoot_survey_us
).static Unit<ElectricCharge>
FRANKLIN
A unit of electric charge which exerts a force of one dyne on an equal charge at a distance of one centimeter (standard nameFr
).static Unit<Acceleration>
G
A unit of acceleration equal to the gravity at the earth's surface (standard namegrav
).static Unit<Volume>
GALLON_DRY_US
A unit of volume equal to one US dry gallon.static Unit<Volume>
GALLON_LIQUID_US
A unit of volume equal to one US gallon, Liquid Unit.static Unit<Volume>
GALLON_UK
A unit of volume equal to4.546 09
(standard nameLITRE
gal_uk
).static Unit<MagneticFluxDensity>
GAUSS
A unit of magnetic flux density equal1000 A/m
(standard nameG
).static Unit<ElectricCurrent>
GILBERT
A unit of electric charge equal to the centimeter-gram-second electromagnetic unit of magnetomotive force, equal to10/4 πampere-turn
(standard nameGi
).static Unit<Angle>
GRADE
A unit of angle measure equal to1/400
(standard nameREVOLUTION
grade
).static Unit<Area>
HECTARE
A unit of area equal to100
(standard nameARE
ha
).static Unit<Power>
HORSEPOWER
A unit of power equal to the power required to raise a mass of 75 kilograms at a velocity of 1 meter per second (metric, standard namehp
).static Unit<Duration>
HOUR
A unit of duration equal to60
(standard nameMINUTE
h
).static Unit<Length>
INCH
A unit of length equal to0.0254 m
(standard namein
).static Unit<Pressure>
INCH_OF_MERCURY
A unit of pressure equal to the pressure exerted at the Earth's surface by a column of mercury 1 inch high (standard nameinHg
).static Unit<Force>
KILOGRAM_FORCE
A unit of force equal to9.80665 N
(standard namekgf
).static Unit<Velocity>
KILOMETERS_PER_HOUR
Equivalent toKILOMETRES_PER_HOUR
.static Unit<Velocity>
KILOMETRES_PER_HOUR
A unit of velocity expressing the number ofSI.KILOMETRE
perhour
.static Unit<Velocity>
KNOT
static Unit<Illuminance>
LAMBERT
A unit of illuminance equal to1E4 Lx
(standard nameLa
).static Unit<Length>
LIGHT_YEAR
A unit of length equal to the distance that light travels in one year through a vacuum (standard namely
).static Unit<Volume>
LITER
Equivalent toLITRE
(American spelling).static Unit<Volume>
LITRE
A unit of volume equal to one cubic decimeter (default labelL
, also recognizedµL, mL, cL, dL
).static Unit<Velocity>
MACH
A unit of velocity to express the speed of an aircraft relative to the speed of sound (standard nameMach
).static Unit<MagneticFlux>
MAXWELL
A unit of magnetic flux equal1E-8 Wb
(standard nameMx
).static Unit<Mass>
METRIC_TON
A unit of mass equal to1000 kg
(metric ton, standard namet
).static Unit<Length>
MILE
A unit of length equal to1609.344 m
(standard namemi
).static Unit<Velocity>
MILES_PER_HOUR
static Unit<Pressure>
MILLIMETER_OF_MERCURY
A unit of pressure equal to the pressure exerted at the Earth's surface by a column of mercury 1 millimeter high (standard namemmHg
).static Unit<Duration>
MINUTE
A unit of duration equal to60 s
(standard namemin
).static Unit<Angle>
MINUTE_ANGLE
A unit of angle equal to1/60
(standard nameDEGREE_ANGLE
′
).static Unit<Duration>
MONTH
A unit of duration equal to one twelfth of a year (standard namemonth
).static Unit<Length>
NAUTICAL_MILE
A unit of length equal to1852.0 m
(standard namenmi
).static Unit<DataAmount>
OCTET
EquivalentBYTE
static Unit<Mass>
OUNCE
A unit of mass equal to1 / 16
(standard namePOUND
oz
).static Unit<Volume>
OUNCE_LIQUID_UK
A unit of volume equal to1 / 160
(standard nameGALLON_UK
oz_fl_uk
).static Unit<Volume>
OUNCE_LIQUID_US
A unit of volume equal to1 / 128
(standard nameGALLON_LIQUID_US
oz_fl
).static Unit<Length>
PARSEC
A unit of length equal to the distance at which a star would appear to shift its position by one arcsecond over the course the time (about 3 months) in which the Earth moves a distance ofASTRONOMICAL_UNIT
in the direction perpendicular to the direction to the star (standard namepc
).static Unit<Dimensionless>
PERCENT
A dimensionless unit equals to0.01
(standard name%
).static Unit<Length>
PIXEL
A unit of length equal to1/72
(standard nameINCH
pixel
).static Unit<Length>
POINT
A unit of length equal to0.013837
exactly (standard nameINCH
pt
).static Unit<DynamicViscosity>
POISE
A unit of dynamic viscosity equal to1 g/(cm·s)
(cgs unit).static Unit<Mass>
POUND
A unit of mass equal to453.59237 grams
(avoirdupois pound, standard namelb
).static Unit<Force>
POUND_FORCE
static Unit<RadiationDoseAbsorbed>
RAD
A unit of radiation dose absorbed equal to a dose of 0.01 joule of energy per kilogram of mass (J/kg) (standard namerd
).static Unit<Temperature>
RANKINE
A unit of temperature equal to5/9 °K
(standard name°R
).static Unit<RadiationDoseEffective>
REM
A unit of radiation dose effective equal to0.01 Sv
(standard namerem
).static Unit<Angle>
REVOLUTION
A unit of angle equal to a full circle or2π
(standard nameSI.RADIAN
rev
).static Unit<?>
ROENTGEN
A unit used to measure the ionizing ability of radiation (standard nameRoentgen
).static Unit<RadioactiveActivity>
RUTHERFORD
A unit of radioctive activity equal to 1 million radioactive disintegrations per second (standard nameRd
).static Unit<Angle>
SECOND_ANGLE
A unit of angle equal to1/60
(standard nameMINUTE_ANGLE
"
).static Unit<SolidAngle>
SPHERE
A unit of solid angle equal to4 π steradians
(standard namesphere
).static Unit<KinematicViscosity>
STOKE
A unit of kinematic viscosity equal to1 cm²/s
(cgs unit).static Unit<Mass>
TON_UK
A unit of mass equal to2240
(long ton, standard namePOUND
ton_uk
).static Unit<Mass>
TON_US
A unit of mass equal to2000
(short ton, standard namePOUND
ton_us
).static Unit<Duration>
WEEK
A unit of duration equal to7
(standard nameDAY
week
).static Unit<Length>
YARD
A unit of length equal to0.9144 m
(standard nameyd
).static Unit<Duration>
YEAR
A unit of duration equal to 365 days, 5 hours, 49 minutes, and 12 seconds (standard nameyear
).static Unit<Duration>
YEAR_CALENDAR
A unit of duration equal to365
(standard nameDAY
year_calendar
).static Unit<Duration>
YEAR_SIDEREAL
A unit of duration equal to one complete revolution of the earth about the sun, relative to the fixed stars, or 365 days, 6 hours, 9 minutes, 9.54 seconds (standard nameyear_sidereal
).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NonSI
getInstance()
Returns the unique instance of this class.Set<Unit<?>>
getUnits()
Returns a read only view over the units defined in this class.
-
-
-
Field Detail
-
PERCENT
public static final Unit<Dimensionless> PERCENT
A dimensionless unit equals to0.01
(standard name%
).
-
DECIBEL
public static final Unit<Dimensionless> DECIBEL
A logarithmic unit used to describe a ratio (standard namedB
).
-
ATOM
public static final Unit<AmountOfSubstance> ATOM
A unit of amount of substance equals to one atom (standard nameatom
).
-
NAUTICAL_MILE
public static final Unit<Length> NAUTICAL_MILE
A unit of length equal to1852.0 m
(standard namenmi
).
-
ANGSTROM
public static final Unit<Length> ANGSTROM
A unit of length equal to1E-10 m
(standard nameÅ
).
-
ASTRONOMICAL_UNIT
public static final Unit<Length> ASTRONOMICAL_UNIT
A unit of length equal to the average distance from the center of the Earth to the center of the Sun (standard nameua
).
-
LIGHT_YEAR
public static final Unit<Length> LIGHT_YEAR
A unit of length equal to the distance that light travels in one year through a vacuum (standard namely
).
-
PARSEC
public static final Unit<Length> PARSEC
A unit of length equal to the distance at which a star would appear to shift its position by one arcsecond over the course the time (about 3 months) in which the Earth moves a distance ofASTRONOMICAL_UNIT
in the direction perpendicular to the direction to the star (standard namepc
).
-
POINT
public static final Unit<Length> POINT
A unit of length equal to0.013837
exactly (standard nameINCH
pt
).- See Also:
PIXEL
-
PIXEL
public static final Unit<Length> PIXEL
A unit of length equal to1/72
(standard nameINCH
pixel
). It is the American point rounded to an even 1/72 inch.- See Also:
POINT
-
MINUTE
public static final Unit<Duration> MINUTE
A unit of duration equal to60 s
(standard namemin
).
-
HOUR
public static final Unit<Duration> HOUR
A unit of duration equal to60
(standard nameMINUTE
h
).
-
WEEK
public static final Unit<Duration> WEEK
A unit of duration equal to7
(standard nameDAY
week
).
-
YEAR
public static final Unit<Duration> YEAR
A unit of duration equal to 365 days, 5 hours, 49 minutes, and 12 seconds (standard nameyear
).
-
MONTH
public static final Unit<Duration> MONTH
A unit of duration equal to one twelfth of a year (standard namemonth
).
-
DAY_SIDEREAL
public static final Unit<Duration> DAY_SIDEREAL
A unit of duration equal to the time required for a complete rotation of the earth in reference to any star or to the vernal equinox at the meridian, equal to 23 hours, 56 minutes, 4.09 seconds (standard nameday_sidereal
).
-
YEAR_SIDEREAL
public static final Unit<Duration> YEAR_SIDEREAL
A unit of duration equal to one complete revolution of the earth about the sun, relative to the fixed stars, or 365 days, 6 hours, 9 minutes, 9.54 seconds (standard nameyear_sidereal
).
-
YEAR_CALENDAR
public static final Unit<Duration> YEAR_CALENDAR
A unit of duration equal to365
(standard nameDAY
year_calendar
).
-
ATOMIC_MASS
public static final Unit<Mass> ATOMIC_MASS
A unit of mass equal to 1/12 the mass of the carbon-12 atom (standard nameu
).
-
ELECTRON_MASS
public static final Unit<Mass> ELECTRON_MASS
A unit of mass equal to the mass of the electron (standard nameme
).
-
POUND
public static final Unit<Mass> POUND
A unit of mass equal to453.59237 grams
(avoirdupois pound, standard namelb
).
-
TON_US
public static final Unit<Mass> TON_US
A unit of mass equal to2000
(short ton, standard namePOUND
ton_us
).
-
TON_UK
public static final Unit<Mass> TON_UK
A unit of mass equal to2240
(long ton, standard namePOUND
ton_uk
).
-
METRIC_TON
public static final Unit<Mass> METRIC_TON
A unit of mass equal to1000 kg
(metric ton, standard namet
).
-
E
public static final Unit<ElectricCharge> E
A unit of electric charge equal to the charge on one electron (standard namee
).
-
FARADAY
public static final Unit<ElectricCharge> FARADAY
A unit of electric charge equal to equal to the product of Avogadro's number (seeSI.MOLE
) and the charge (1 e) on a single electron (standard nameFd
).
-
FRANKLIN
public static final Unit<ElectricCharge> FRANKLIN
A unit of electric charge which exerts a force of one dyne on an equal charge at a distance of one centimeter (standard nameFr
).
-
RANKINE
public static final Unit<Temperature> RANKINE
A unit of temperature equal to5/9 °K
(standard name°R
).
-
FAHRENHEIT
public static final Unit<Temperature> FAHRENHEIT
A unit of temperature equal to degree Rankine minus459.67 °R
(standard name°F
).- See Also:
RANKINE
-
REVOLUTION
public static final Unit<Angle> REVOLUTION
A unit of angle equal to a full circle or2π
(standard nameSI.RADIAN
rev
).
-
DEGREE_ANGLE
public static final Unit<Angle> DEGREE_ANGLE
A unit of angle equal to1/360
(standard nameREVOLUTION
°
).
-
MINUTE_ANGLE
public static final Unit<Angle> MINUTE_ANGLE
A unit of angle equal to1/60
(standard nameDEGREE_ANGLE
′
).
-
SECOND_ANGLE
public static final Unit<Angle> SECOND_ANGLE
A unit of angle equal to1/60
(standard nameMINUTE_ANGLE
"
).
-
CENTIRADIAN
public static final Unit<Angle> CENTIRADIAN
A unit of angle equal to0.01
(standard nameSI.RADIAN
centiradian
).
-
GRADE
public static final Unit<Angle> GRADE
A unit of angle measure equal to1/400
(standard nameREVOLUTION
grade
).
-
KILOMETRES_PER_HOUR
public static final Unit<Velocity> KILOMETRES_PER_HOUR
A unit of velocity expressing the number ofSI.KILOMETRE
perhour
.
-
KILOMETERS_PER_HOUR
public static final Unit<Velocity> KILOMETERS_PER_HOUR
Equivalent toKILOMETRES_PER_HOUR
.
-
MACH
public static final Unit<Velocity> MACH
A unit of velocity to express the speed of an aircraft relative to the speed of sound (standard nameMach
).
-
C
public static final Unit<Velocity> C
A unit of velocity relative to the speed of light (standard namec
).
-
G
public static final Unit<Acceleration> G
A unit of acceleration equal to the gravity at the earth's surface (standard namegrav
).
-
BYTE
public static final Unit<DataAmount> BYTE
A unit of data amount equal to8
(BinarY TErm, standard nameSI.BIT
byte
).
-
OCTET
public static final Unit<DataAmount> OCTET
EquivalentBYTE
-
GILBERT
public static final Unit<ElectricCurrent> GILBERT
A unit of electric charge equal to the centimeter-gram-second electromagnetic unit of magnetomotive force, equal to10/4 πampere-turn
(standard nameGi
).
-
ELECTRON_VOLT
public static final Unit<Energy> ELECTRON_VOLT
A unit of energy equal to one electron-volt (standard nameeV
, also recognizedkeV, MeV, GeV
).
-
LAMBERT
public static final Unit<Illuminance> LAMBERT
A unit of illuminance equal to1E4 Lx
(standard nameLa
).
-
MAXWELL
public static final Unit<MagneticFlux> MAXWELL
A unit of magnetic flux equal1E-8 Wb
(standard nameMx
).
-
GAUSS
public static final Unit<MagneticFluxDensity> GAUSS
A unit of magnetic flux density equal1000 A/m
(standard nameG
).
-
KILOGRAM_FORCE
public static final Unit<Force> KILOGRAM_FORCE
A unit of force equal to9.80665 N
(standard namekgf
).
-
HORSEPOWER
public static final Unit<Power> HORSEPOWER
A unit of power equal to the power required to raise a mass of 75 kilograms at a velocity of 1 meter per second (metric, standard namehp
).
-
ATMOSPHERE
public static final Unit<Pressure> ATMOSPHERE
A unit of pressure equal to the average pressure of the Earth's atmosphere at sea level (standard nameatm
).
-
MILLIMETER_OF_MERCURY
public static final Unit<Pressure> MILLIMETER_OF_MERCURY
A unit of pressure equal to the pressure exerted at the Earth's surface by a column of mercury 1 millimeter high (standard namemmHg
).
-
INCH_OF_MERCURY
public static final Unit<Pressure> INCH_OF_MERCURY
A unit of pressure equal to the pressure exerted at the Earth's surface by a column of mercury 1 inch high (standard nameinHg
).
-
RAD
public static final Unit<RadiationDoseAbsorbed> RAD
A unit of radiation dose absorbed equal to a dose of 0.01 joule of energy per kilogram of mass (J/kg) (standard namerd
).
-
REM
public static final Unit<RadiationDoseEffective> REM
A unit of radiation dose effective equal to0.01 Sv
(standard namerem
).
-
CURIE
public static final Unit<RadioactiveActivity> CURIE
A unit of radioctive activity equal to the activity of a gram of radium (standard nameCi
).
-
RUTHERFORD
public static final Unit<RadioactiveActivity> RUTHERFORD
A unit of radioctive activity equal to 1 million radioactive disintegrations per second (standard nameRd
).
-
SPHERE
public static final Unit<SolidAngle> SPHERE
A unit of solid angle equal to4 π steradians
(standard namesphere
).
-
LITRE
public static final Unit<Volume> LITRE
A unit of volume equal to one cubic decimeter (default labelL
, also recognizedµL, mL, cL, dL
).
-
CUBIC_INCH
public static final Unit<Volume> CUBIC_INCH
A unit of volume equal to one cubic inch (in³
).
-
GALLON_LIQUID_US
public static final Unit<Volume> GALLON_LIQUID_US
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 namegal
).
-
OUNCE_LIQUID_US
public static final Unit<Volume> OUNCE_LIQUID_US
A unit of volume equal to1 / 128
(standard nameGALLON_LIQUID_US
oz_fl
).
-
GALLON_DRY_US
public static final Unit<Volume> GALLON_DRY_US
A unit of volume equal to one US dry gallon. (standard namegallon_dry_us
).
-
GALLON_UK
public static final Unit<Volume> GALLON_UK
A unit of volume equal to4.546 09
(standard nameLITRE
gal_uk
).
-
OUNCE_LIQUID_UK
public static final Unit<Volume> OUNCE_LIQUID_UK
A unit of volume equal to1 / 160
(standard nameGALLON_UK
oz_fl_uk
).
-
POISE
public static final Unit<DynamicViscosity> POISE
A unit of dynamic viscosity equal to1 g/(cm·s)
(cgs unit).
-
STOKE
public static final Unit<KinematicViscosity> STOKE
A unit of kinematic viscosity equal to1 cm²/s
(cgs unit).
-
ROENTGEN
public static final Unit<?> ROENTGEN
A unit used to measure the ionizing ability of radiation (standard nameRoentgen
).
-
-
Method Detail
-
getInstance
public static NonSI getInstance()
Returns the unique instance of this class.- Returns:
- the NonSI instance.
-
getUnits
public Set<Unit<?>> getUnits()
Returns a read only view over the units defined in this class.- Specified by:
getUnits
in classSystemOfUnits
- Returns:
- the collection of NonSI units.
-
-