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>ANGSTROMA unit of length equal to1E-10 m(standard nameÅ).static Unit<Area>AREA unit of area equal to100 m²(standard namea).static Unit<Length>ASTRONOMICAL_UNITA 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>ATMOSPHEREA unit of pressure equal to the average pressure of the Earth's atmosphere at sea level (standard nameatm).static Unit<AmountOfSubstance>ATOMA unit of amount of substance equals to one atom (standard nameatom).static Unit<Mass>ATOMIC_MASSA unit of mass equal to 1/12 the mass of the carbon-12 atom (standard nameu).static Unit<Pressure>BARA unit of pressure equal to100 kPa(standard namebar).static Unit<DataAmount>BYTEA unit of data amount equal to8(BinarY TErm, standard nameSI.BITbyte).static Unit<Velocity>CA unit of velocity relative to the speed of light (standard namec).static Unit<Angle>CENTIRADIANA unit of angle equal to0.01(standard nameSI.RADIANcentiradian).static Unit<Length>COMPUTER_POINTEquivalentPIXELstatic Unit<Volume>CUBIC_INCHA unit of volume equal to one cubic inch (in³).static Unit<RadioactiveActivity>CURIEA unit of radioctive activity equal to the activity of a gram of radium (standard nameCi).static Unit<Duration>DAYA unit of duration equal to24(standard nameHOURd).static Unit<Duration>DAY_SIDEREALA 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>DECIBELA logarithmic unit used to describe a ratio (standard namedB).static Unit<Angle>DEGREE_ANGLEA unit of angle equal to1/360(standard nameREVOLUTION°).static Unit<Force>DYNEA unit of force equal to1E-5 N(standard namedyn).static Unit<ElectricCharge>EA unit of electric charge equal to the charge on one electron (standard namee).static Unit<Mass>ELECTRON_MASSA unit of mass equal to the mass of the electron (standard nameme).static Unit<Energy>ELECTRON_VOLTA unit of energy equal to one electron-volt (standard nameeV, also recognizedkeV, MeV, GeV).static Unit<Energy>ERGA unit of energy equal to1E-7 J(standard nameerg).static Unit<Temperature>FAHRENHEITA unit of temperature equal to degree Rankine minus459.67 °R(standard name°F).static Unit<ElectricCharge>FARADAYA 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>FOOTA unit of length equal to0.3048 m(standard nameft).static Unit<Length>FOOT_SURVEY_USA unit of length equal to1200/3937 m(standard namefoot_survey_us).static Unit<ElectricCharge>FRANKLINA 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>GA unit of acceleration equal to the gravity at the earth's surface (standard namegrav).static Unit<Volume>GALLON_DRY_USA unit of volume equal to one US dry gallon.static Unit<Volume>GALLON_LIQUID_USA unit of volume equal to one US gallon, Liquid Unit.static Unit<Volume>GALLON_UKA unit of volume equal to4.546 09(standard nameLITREgal_uk).static Unit<MagneticFluxDensity>GAUSSA unit of magnetic flux density equal1000 A/m(standard nameG).static Unit<ElectricCurrent>GILBERTA 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>GRADEA unit of angle measure equal to1/400(standard nameREVOLUTIONgrade).static Unit<Area>HECTAREA unit of area equal to100(standard nameAREha).static Unit<Power>HORSEPOWERA 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>HOURA unit of duration equal to60(standard nameMINUTEh).static Unit<Length>INCHA unit of length equal to0.0254 m(standard namein).static Unit<Pressure>INCH_OF_MERCURYA 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_FORCEA unit of force equal to9.80665 N(standard namekgf).static Unit<Velocity>KILOMETERS_PER_HOUREquivalent toKILOMETRES_PER_HOUR.static Unit<Velocity>KILOMETRES_PER_HOURA unit of velocity expressing the number ofSI.KILOMETREperhour.static Unit<Velocity>KNOTstatic Unit<Illuminance>LAMBERTA unit of illuminance equal to1E4 Lx(standard nameLa).static Unit<Length>LIGHT_YEARA unit of length equal to the distance that light travels in one year through a vacuum (standard namely).static Unit<Volume>LITEREquivalent toLITRE(American spelling).static Unit<Volume>LITREA unit of volume equal to one cubic decimeter (default labelL, also recognizedµL, mL, cL, dL).static Unit<Velocity>MACHA unit of velocity to express the speed of an aircraft relative to the speed of sound (standard nameMach).static Unit<MagneticFlux>MAXWELLA unit of magnetic flux equal1E-8 Wb(standard nameMx).static Unit<Mass>METRIC_TONA unit of mass equal to1000 kg(metric ton, standard namet).static Unit<Length>MILEA unit of length equal to1609.344 m(standard namemi).static Unit<Velocity>MILES_PER_HOURstatic Unit<Pressure>MILLIMETER_OF_MERCURYA 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>MINUTEA unit of duration equal to60 s(standard namemin).static Unit<Angle>MINUTE_ANGLEA unit of angle equal to1/60(standard nameDEGREE_ANGLE′).static Unit<Duration>MONTHA unit of duration equal to one twelfth of a year (standard namemonth).static Unit<Length>NAUTICAL_MILEA unit of length equal to1852.0 m(standard namenmi).static Unit<DataAmount>OCTETEquivalentBYTEstatic Unit<Mass>OUNCEA unit of mass equal to1 / 16(standard namePOUNDoz).static Unit<Volume>OUNCE_LIQUID_UKA unit of volume equal to1 / 160(standard nameGALLON_UKoz_fl_uk).static Unit<Volume>OUNCE_LIQUID_USA unit of volume equal to1 / 128(standard nameGALLON_LIQUID_USoz_fl).static Unit<Length>PARSECA 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_UNITin the direction perpendicular to the direction to the star (standard namepc).static Unit<Dimensionless>PERCENTA dimensionless unit equals to0.01(standard name%).static Unit<Length>PIXELA unit of length equal to1/72(standard nameINCHpixel).static Unit<Length>POINTA unit of length equal to0.013837exactly (standard nameINCHpt).static Unit<DynamicViscosity>POISEA unit of dynamic viscosity equal to1 g/(cm·s)(cgs unit).static Unit<Mass>POUNDA unit of mass equal to453.59237 grams(avoirdupois pound, standard namelb).static Unit<Force>POUND_FORCEstatic Unit<RadiationDoseAbsorbed>RADA 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>RANKINEA unit of temperature equal to5/9 °K(standard name°R).static Unit<RadiationDoseEffective>REMA unit of radiation dose effective equal to0.01 Sv(standard namerem).static Unit<Angle>REVOLUTIONA unit of angle equal to a full circle or2π(standard nameSI.RADIANrev).static Unit<?>ROENTGENA unit used to measure the ionizing ability of radiation (standard nameRoentgen).static Unit<RadioactiveActivity>RUTHERFORDA unit of radioctive activity equal to 1 million radioactive disintegrations per second (standard nameRd).static Unit<Angle>SECOND_ANGLEA unit of angle equal to1/60(standard nameMINUTE_ANGLE").static Unit<SolidAngle>SPHEREA unit of solid angle equal to4 π steradians(standard namesphere).static Unit<KinematicViscosity>STOKEA unit of kinematic viscosity equal to1 cm²/s(cgs unit).static Unit<Mass>TON_UKA unit of mass equal to2240(long ton, standard namePOUNDton_uk).static Unit<Mass>TON_USA unit of mass equal to2000(short ton, standard namePOUNDton_us).static Unit<Duration>WEEKA unit of duration equal to7(standard nameDAYweek).static Unit<Length>YARDA unit of length equal to0.9144 m(standard nameyd).static Unit<Duration>YEARA unit of duration equal to 365 days, 5 hours, 49 minutes, and 12 seconds (standard nameyear).static Unit<Duration>YEAR_CALENDARA unit of duration equal to365(standard nameDAYyear_calendar).static Unit<Duration>YEAR_SIDEREALA 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 NonSIgetInstance()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_UNITin the direction perpendicular to the direction to the star (standard namepc).
-
POINT
public static final Unit<Length> POINT
A unit of length equal to0.013837exactly (standard nameINCHpt).- See Also:
PIXEL
-
PIXEL
public static final Unit<Length> PIXEL
A unit of length equal to1/72(standard nameINCHpixel). 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 nameMINUTEh).
-
WEEK
public static final Unit<Duration> WEEK
A unit of duration equal to7(standard nameDAYweek).
-
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 nameDAYyear_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 namePOUNDton_us).
-
TON_UK
public static final Unit<Mass> TON_UK
A unit of mass equal to2240(long ton, standard namePOUNDton_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.RADIANrev).
-
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.RADIANcentiradian).
-
GRADE
public static final Unit<Angle> GRADE
A unit of angle measure equal to1/400(standard nameREVOLUTIONgrade).
-
KILOMETRES_PER_HOUR
public static final Unit<Velocity> KILOMETRES_PER_HOUR
A unit of velocity expressing the number ofSI.KILOMETREperhour.
-
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.BITbyte).
-
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_USoz_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 nameLITREgal_uk).
-
OUNCE_LIQUID_UK
public static final Unit<Volume> OUNCE_LIQUID_UK
A unit of volume equal to1 / 160(standard nameGALLON_UKoz_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:
getUnitsin classSystemOfUnits- Returns:
- the collection of NonSI units.
-
-