Package | Description |
---|---|
javax.measure |
Provides strongly typed measurements to enforce compile-time
check of parameters consistency and avoid interface errors.
|
javax.measure.quantity |
Provides quantitative properties or attributes of thing such as
mass, time, distance, heat, and angular separation.
|
javax.measure.unit |
Provides support for programatic unit handling.
|
org.jscience.economics.money |
Provides support for monetary quantities and their currencies.
|
org.jscience.geography.coordinates |
Provides linear or angular
quantities which
designate the position that a point occupies in a given reference frame or system. |
org.jscience.physics.amount |
Provides support for exact or arbitrary precision measurements.
|
org.opengis.referencing.cs |
Modifier and Type | Method and Description |
---|---|
abstract Unit<Q> |
Measure.getUnit()
Returns the measurement unit of this measure.
|
Unit<Q> |
DecimalMeasure.getUnit() |
Modifier and Type | Method and Description |
---|---|
abstract double |
VectorMeasure.doubleValue(Unit<Q> unit)
Returns the norm of this measurement vector stated in the specified
unit.
|
abstract double |
Measure.doubleValue(Unit<Q> unit)
Returns the value of this measure stated in the specified unit as
a
double . |
double |
Measurable.doubleValue(Unit<Q> unit)
Returns the value of this measurable stated in the specified unit as
a
double . |
double |
DecimalMeasure.doubleValue(Unit<Q> unit) |
float |
Measure.floatValue(Unit<Q> unit)
Returns the value of this measure stated in the specified unit as a
float . |
int |
Measure.intValue(Unit<Q> unit)
Returns the estimated integral value of this measure stated in
the specified unit as a
int . |
long |
Measure.longValue(Unit<Q> unit)
Returns the estimated integral value of this measure stated in
the specified unit as a
long . |
long |
Measurable.longValue(Unit<Q> unit)
Returns the estimated integral value of this measurable stated in
the specified unit as a
long . |
abstract VectorMeasure<Q> |
VectorMeasure.to(Unit<Q> unit)
Returns the measurement vector equivalent to this one but stated in the
specified unit.
|
abstract Measure<V,Q> |
Measure.to(Unit<Q> unit)
Returns the measure equivalent to this measure but stated in the
specified unit.
|
DecimalMeasure<Q> |
DecimalMeasure.to(Unit<Q> unit)
Returns the decimal measure equivalent to this measure but stated in the
specified unit.
|
DecimalMeasure<Q> |
DecimalMeasure.to(Unit<Q> unit,
MathContext mathContext)
Returns the decimal measure equivalent to this measure but stated in the
specified unit, the conversion is performed using the specified math
context.
|
static <Q extends Quantity> |
Measure.valueOf(BigDecimal decimal,
Unit<Q> unit)
Deprecated.
DecimalMeasure should be used directly. |
static <Q extends Quantity> |
DecimalMeasure.valueOf(BigDecimal decimal,
Unit<Q> unit)
Returns the decimal measure for the specified number stated in the
specified unit.
|
static <Q extends Quantity> |
Measure.valueOf(BigDecimal decimal,
Unit<Q> unit,
MathContext mathContext)
Deprecated.
|
static <Q extends Quantity> |
VectorMeasure.valueOf(double[] components,
Unit<Q> unit)
Returns a multi-dimensional measurement vector.
|
static <Q extends Quantity> |
Measure.valueOf(double[] components,
Unit<Q> unit)
Deprecated.
VectorMeasure should be used directly. |
static <Q extends Quantity> |
VectorMeasure.valueOf(double x,
double y,
double z,
Unit<Q> unit)
Returns a 3-dimensional measurement vector.
|
static <Q extends Quantity> |
VectorMeasure.valueOf(double x,
double y,
Unit<Q> unit)
Returns a 2-dimensional measurement vector.
|
static <Q extends Quantity> |
Measure.valueOf(double doubleValue,
Unit<Q> unit)
Returns the scalar measure for the specified
double
stated in the specified unit. |
static <Q extends Quantity> |
Measure.valueOf(float floatValue,
Unit<Q> unit)
Returns the scalar measure for the specified
float
stated in the specified unit. |
static <Q extends Quantity> |
Measure.valueOf(int intValue,
Unit<Q> unit)
Returns the scalar measure for the specified
int
stated in the specified unit. |
static <Q extends Quantity> |
Measure.valueOf(long longValue,
Unit<Q> unit)
Returns the scalar measure for the specified
double
stated in the specified unit. |
Constructor and Description |
---|
DecimalMeasure(BigDecimal value,
Unit<Q> unit)
Creates a decimal measure for the specified number stated in the
specified unit.
|
Modifier and Type | Field and Description |
---|---|
static Unit<VolumetricFlowRate> |
VolumetricFlowRate.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<VolumetricDensity> |
VolumetricDensity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Volume> |
Volume.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Velocity> |
Velocity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Torque> |
Torque.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Temperature> |
Temperature.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<SolidAngle> |
SolidAngle.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<RadioactiveActivity> |
RadioactiveActivity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<RadiationDoseEffective> |
RadiationDoseEffective.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<RadiationDoseAbsorbed> |
RadiationDoseAbsorbed.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Pressure> |
Pressure.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Power> |
Power.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<MassFlowRate> |
MassFlowRate.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Mass> |
Mass.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<MagneticFluxDensity> |
MagneticFluxDensity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<MagneticFlux> |
MagneticFlux.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<LuminousIntensity> |
LuminousIntensity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<LuminousFlux> |
LuminousFlux.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Length> |
Length.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<KinematicViscosity> |
KinematicViscosity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Illuminance> |
Illuminance.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Frequency> |
Frequency.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Force> |
Force.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Energy> |
Energy.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricResistance> |
ElectricResistance.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricPotential> |
ElectricPotential.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricInductance> |
ElectricInductance.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricCurrent> |
ElectricCurrent.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricConductance> |
ElectricConductance.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricCharge> |
ElectricCharge.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<ElectricCapacitance> |
ElectricCapacitance.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<DynamicViscosity> |
DynamicViscosity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Duration> |
Duration.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Dimensionless> |
Dimensionless.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<DataRate> |
DataRate.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<DataAmount> |
DataAmount.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<CatalyticActivity> |
CatalyticActivity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Area> |
Area.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<AngularVelocity> |
AngularVelocity.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<AngularAcceleration> |
AngularAcceleration.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Angle> |
Angle.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<AmountOfSubstance> |
AmountOfSubstance.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
static Unit<Acceleration> |
Acceleration.UNIT
Holds the SI unit (Système International d'Unités) for this quantity.
|
Modifier and Type | Class and Description |
---|---|
class |
AlternateUnit<Q extends Quantity>
This class represents the units used in expressions to distinguish
between quantities of a different nature but of the same dimensions.
|
class |
BaseUnit<Q extends Quantity>
This class represents the building blocks on top of which all others
units are created.
|
class |
CompoundUnit<Q extends Quantity>
This class represents the multi-radix units (such as "hour:min:sec").
|
class |
DerivedUnit<Q extends Quantity>
This class identifies the units created by combining or transforming
other units.
|
class |
ProductUnit<Q extends Quantity>
This class represents units formed by the product of rational powers of
existing units.
|
class |
TransformedUnit<Q extends Quantity>
This class represents the units derived from other units using
converters . |
Modifier and Type | Field and Description |
---|---|
static Unit<Length> |
NonSI.ANGSTROM
A unit of length equal to
1E-10 m
(standard name Å ). |
static Unit<Area> |
NonSI.ARE
A unit of area equal to
100 m²
(standard name a ). |
static Unit<Length> |
NonSI.ASTRONOMICAL_UNIT
A unit of length equal to the average distance from the center of the
Earth to the center of the Sun (standard name
ua ). |
static Unit<Pressure> |
NonSI.ATMOSPHERE
A unit of pressure equal to the average pressure of the Earth's
atmosphere at sea level (standard name
atm ). |
static Unit<AmountOfSubstance> |
NonSI.ATOM
A unit of amount of substance equals to one atom
(standard name
atom ). |
static Unit<Mass> |
NonSI.ATOMIC_MASS
A unit of mass equal to 1/12 the mass of the carbon-12 atom
(standard name
u ). |
static Unit<Pressure> |
NonSI.BAR
A unit of pressure equal to
100 kPa
(standard name bar ). |
static Unit<DataAmount> |
NonSI.BYTE
A unit of data amount equal to
8
(BinarY TErm, standard name byte ). |
static Unit<Velocity> |
NonSI.C
A unit of velocity relative to the speed of light
(standard name
c ). |
static Unit<Temperature> |
SI.CELSIUS
The derived unit for Celsius temperature (
℃ ). |
static Unit<Length> |
SI.CENTIMETER
Equivalent to
SI.CENTIMETRE . |
static Unit<Length> |
SI.CENTIMETRE
Equivalent to
CENTI(METRE) . |
static Unit<Angle> |
NonSI.CENTIRADIAN
A unit of angle equal to
0.01
(standard name centiradian ). |
static Unit<Length> |
NonSI.COMPUTER_POINT
Equivalent
NonSI.PIXEL |
static Unit<Volume> |
NonSI.CUBIC_INCH
A unit of volume equal to one cubic inch (
in³ ). |
static Unit<Volume> |
SI.CUBIC_METRE
The metric unit for volume quantities (
m³ ). |
static Unit<RadioactiveActivity> |
NonSI.CURIE
A unit of radioctive activity equal to the activity of a gram of radium
(standard name
Ci ). |
static Unit<Duration> |
NonSI.DAY
A unit of duration equal to
24
(standard name d ). |
static Unit<Duration> |
NonSI.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 name
day_sidereal ). |
static Unit<Dimensionless> |
NonSI.DECIBEL
A logarithmic unit used to describe a ratio
(standard name
dB ). |
static Unit<Angle> |
NonSI.DEGREE_ANGLE
A unit of angle equal to
1/360
(standard name ° ). |
static Unit<Force> |
NonSI.DYNE
A unit of force equal to
1E-5 N
(standard name dyn ). |
static Unit<ElectricCharge> |
NonSI.E
A unit of electric charge equal to the charge on one electron
(standard name
e ). |
static Unit<Mass> |
NonSI.ELECTRON_MASS
A unit of mass equal to the mass of the electron
(standard name
me ). |
static Unit<Energy> |
NonSI.ELECTRON_VOLT
A unit of energy equal to one electron-volt (standard name
eV , also recognized keV, MeV, GeV ). |
static Unit<Energy> |
NonSI.ERG
A unit of energy equal to
1E-7 J
(standard name erg ). |
static Unit<Temperature> |
NonSI.FAHRENHEIT
A unit of temperature equal to degree Rankine minus
459.67 °R (standard name °F ). |
static Unit<ElectricCharge> |
NonSI.FARADAY
A unit of electric charge equal to equal to the product of Avogadro's
number (see
SI.MOLE ) and the charge (1 e) on a single electron
(standard name Fd ). |
static Unit<Length> |
NonSI.FOOT
A unit of length equal to
0.3048 m
(standard name ft ). |
static Unit<Length> |
NonSI.FOOT_SURVEY_US
A unit of length equal to
1200/3937 m
(standard name foot_survey_us ). |
static Unit<ElectricCharge> |
NonSI.FRANKLIN
A unit of electric charge which exerts a force of one dyne on an equal
charge at a distance of one centimeter
(standard name
Fr ). |
static Unit<Acceleration> |
NonSI.G
A unit of acceleration equal to the gravity at the earth's surface
(standard name
grav ). |
static Unit<Volume> |
NonSI.GALLON_DRY_US
A unit of volume equal to one US dry gallon.
|
static Unit<Volume> |
NonSI.GALLON_LIQUID_US
A unit of volume equal to one US gallon, Liquid Unit.
|
static Unit<Volume> |
NonSI.GALLON_UK
A unit of volume equal to
4.546 09
(standard name gal_uk ). |
static Unit<MagneticFluxDensity> |
NonSI.GAUSS
A unit of magnetic flux density equal
1000 A/m
(standard name G ). |
static Unit<ElectricCurrent> |
NonSI.GILBERT
A unit of electric charge equal to the centimeter-gram-second
electromagnetic unit of magnetomotive force, equal to
10/4
πampere-turn (standard name Gi ). |
static Unit<Angle> |
NonSI.GRADE
A unit of angle measure equal to
1/400
(standard name grade ). |
static Unit<Mass> |
SI.GRAM
The derived unit for mass quantities (
g ). |
static Unit<Area> |
NonSI.HECTARE
A unit of area equal to
100
(standard name ha ). |
static Unit<Power> |
NonSI.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 name
hp ). |
static Unit<Duration> |
NonSI.HOUR
A unit of duration equal to
60
(standard name h ). |
static Unit<Length> |
NonSI.INCH
A unit of length equal to
0.0254 m
(standard name in ). |
static Unit<Pressure> |
NonSI.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 name
inHg ). |
static Unit<Force> |
NonSI.KILOGRAM_FORCE
A unit of force equal to
9.80665 N
(standard name kgf ). |
static Unit<Length> |
SI.KILOMETER
Equivalent to
SI.KILOMETRE . |
static Unit<Velocity> |
NonSI.KILOMETERS_PER_HOUR
Equivalent to
NonSI.KILOMETRES_PER_HOUR . |
static Unit<Length> |
SI.KILOMETRE
Equivalent to
KILO(METRE) . |
static Unit<Velocity> |
NonSI.KILOMETRES_PER_HOUR
A unit of velocity expressing the number of
SI.KILOMETRE per
hour . |
static Unit<Velocity> |
NonSI.KNOT
|
static Unit<Illuminance> |
NonSI.LAMBERT
A unit of illuminance equal to
1E4 Lx
(standard name La ). |
static Unit<Length> |
NonSI.LIGHT_YEAR
A unit of length equal to the distance that light travels in one year
through a vacuum (standard name
ly ). |
static Unit<Volume> |
NonSI.LITER
Equivalent to
NonSI.LITRE (American spelling). |
static Unit<Volume> |
NonSI.LITRE
A unit of volume equal to one cubic decimeter (default label
L , also recognized µL, mL, cL, dL ). |
static Unit<Velocity> |
NonSI.MACH
A unit of velocity to express the speed of an aircraft relative to
the speed of sound (standard name
Mach ). |
static Unit<MagneticFlux> |
NonSI.MAXWELL
A unit of magnetic flux equal
1E-8 Wb
(standard name Mx ). |
static Unit<Length> |
SI.METER
Equivalent to
SI.METRE (American spelling). |
static Unit<Velocity> |
SI.METERS_PER_SECOND
Equivalent to
SI.METRES_PER_SECOND . |
static Unit<Acceleration> |
SI.METERS_PER_SQUARE_SECOND
Equivalent to
SI.METRES_PER_SQUARE_SECOND . |
static Unit<Velocity> |
SI.METRE_PER_SECOND
Deprecated.
replaced by
SI.METRES_PER_SECOND . |
static Unit<Acceleration> |
SI.METRE_PER_SQUARE_SECOND
Deprecated.
replaced by
SI.METRES_PER_SQUARE_SECOND . |
static Unit<Velocity> |
SI.METRES_PER_SECOND
The metric unit for velocity quantities (
m/s ). |
static Unit<Acceleration> |
SI.METRES_PER_SQUARE_SECOND
The metric unit for acceleration quantities (
m/s² ). |
static Unit<Mass> |
NonSI.METRIC_TON
A unit of mass equal to
1000 kg (metric ton,
standard name t ). |
static Unit<Length> |
NonSI.MILE
A unit of length equal to
1609.344 m
(standard name mi ). |
static Unit<Velocity> |
NonSI.MILES_PER_HOUR
|
static Unit<Length> |
SI.MILLIMETER
Equivalent to
SI.MILLIMETRE . |
static Unit<Pressure> |
NonSI.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 name
mmHg ). |
static Unit<Length> |
SI.MILLIMETRE
Equivalent to
MILLI(METRE) . |
static Unit<Duration> |
NonSI.MINUTE
A unit of duration equal to
60 s
(standard name min ). |
static Unit<Angle> |
NonSI.MINUTE_ANGLE
A unit of angle equal to
1/60
(standard name ′ ). |
static Unit<Duration> |
NonSI.MONTH
A unit of duration equal to one twelfth of a year
(standard name
month ). |
static Unit<Length> |
NonSI.NAUTICAL_MILE
A unit of length equal to
1852.0 m
(standard name nmi ). |
static Unit<DataAmount> |
NonSI.OCTET
Equivalent
NonSI.BYTE |
static Unit<Dimensionless> |
Unit.ONE
Holds the dimensionless unit
ONE . |
static Unit<Mass> |
NonSI.OUNCE
A unit of mass equal to
1 / 16
(standard name oz ). |
static Unit<Volume> |
NonSI.OUNCE_LIQUID_UK
A unit of volume equal to
1 / 160
(standard name oz_fl_uk ). |
static Unit<Volume> |
NonSI.OUNCE_LIQUID_US
A unit of volume equal to
1 / 128
(standard name oz_fl ). |
static Unit<Length> |
NonSI.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 of
NonSI.ASTRONOMICAL_UNIT in the direction perpendicular to the
direction to the star (standard name pc ). |
static Unit<Dimensionless> |
NonSI.PERCENT
A dimensionless unit equals to
0.01
(standard name % ). |
static Unit<Length> |
NonSI.PIXEL
A unit of length equal to
1/72
(standard name pixel ). |
static Unit<Length> |
NonSI.POINT
A unit of length equal to
0.013837 exactly
(standard name pt ). |
static Unit<DynamicViscosity> |
NonSI.POISE
A unit of dynamic viscosity equal to
1 g/(cm·s)
(cgs unit). |
static Unit<Mass> |
NonSI.POUND
A unit of mass equal to
453.59237 grams (avoirdupois pound,
standard name lb ). |
static Unit<Force> |
NonSI.POUND_FORCE
A unit of force equal to
(standard name lbf ). |
static Unit<RadiationDoseAbsorbed> |
NonSI.RAD
A unit of radiation dose absorbed equal to a dose of 0.01 joule of
energy per kilogram of mass (J/kg) (standard name
rd ). |
static Unit<Temperature> |
NonSI.RANKINE
A unit of temperature equal to
5/9 °K
(standard name °R ). |
static Unit<RadiationDoseEffective> |
NonSI.REM
A unit of radiation dose effective equal to
0.01 Sv
(standard name rem ). |
static Unit<Angle> |
NonSI.REVOLUTION
A unit of angle equal to a full circle or
2π
(standard name rev ). |
static Unit<?> |
NonSI.ROENTGEN
A unit used to measure the ionizing ability of radiation
(standard name
Roentgen ). |
static Unit<RadioactiveActivity> |
NonSI.RUTHERFORD
A unit of radioctive activity equal to 1 million radioactive
disintegrations per second (standard name
Rd ). |
static Unit<Angle> |
NonSI.SECOND_ANGLE
A unit of angle equal to
1/60
(standard name " ). |
static Unit<SolidAngle> |
NonSI.SPHERE
A unit of solid angle equal to
4 π steradians
(standard name sphere ). |
static Unit<Area> |
SI.SQUARE_METRE
The metric unit for area quantities (
m² ). |
static Unit<KinematicViscosity> |
NonSI.STOKE
A unit of kinematic viscosity equal to
1 cm²/s
(cgs unit). |
static Unit<Mass> |
NonSI.TON_UK
A unit of mass equal to
2240 (long ton,
standard name ton_uk ). |
static Unit<Mass> |
NonSI.TON_US
A unit of mass equal to
2000 (short ton,
standard name ton_us ). |
static Unit<Duration> |
NonSI.WEEK
A unit of duration equal to
7
(standard name week ). |
static Unit<Length> |
NonSI.YARD
A unit of length equal to
0.9144 m
(standard name yd ). |
static Unit<Duration> |
NonSI.YEAR
A unit of duration equal to 365 days, 5 hours, 49 minutes,
and 12 seconds (standard name
year ). |
static Unit<Duration> |
NonSI.YEAR_CALENDAR
A unit of duration equal to
365
(standard name year_calendar ). |
static Unit<Duration> |
NonSI.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 name
year_sidereal ). |
Modifier and Type | Method and Description |
---|---|
<T extends Quantity> |
Unit.asType(Class<T> type)
Casts this unit to a parameterized unit of specified nature or
throw a
ClassCastException if the dimension of the
specified quantity and this unit's dimension do not match. |
static <Q extends Quantity> |
SI.ATTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-18 |
static <Q extends Quantity> |
SI.CENTI(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-2 |
static <Q extends Quantity> |
SI.DECI(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-1 |
static <Q extends Quantity> |
SI.DEKA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
101 |
Unit<Q> |
Unit.divide(double divisor)
Returns the result of dividing this unit by an approximate divisor.
|
Unit<Q> |
Unit.divide(long divisor)
Returns the result of dividing this unit by an exact divisor.
|
Unit<? extends Quantity> |
Unit.divide(Unit<?> that)
Returns the quotient of this unit with the one specified.
|
static <Q extends Quantity> |
SI.EXA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1018 |
static <Q extends Quantity> |
SI.FEMTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-15 |
Unit<Q> |
CompoundUnit.getHigher()
Returns the higher unit of this compound unit.
|
Unit<Q> |
CompoundUnit.getLower()
Returns the lower unit of this compound unit.
|
Unit<? super Q> |
AlternateUnit.getParent()
Returns the parent unit from which this alternate unit is derived
(a system unit itself).
|
Unit<Q> |
TransformedUnit.getParentUnit()
Returns the parent unit for this unit.
|
abstract Unit<? super Q> |
Unit.getStandardUnit()
Returns the
base unit , alternate
unit or product of base units and alternate units this unit is derived
from. |
Unit<? super Q> |
TransformedUnit.getStandardUnit() |
Unit<? super Q> |
ProductUnit.getStandardUnit() |
Unit<? super Q> |
CompoundUnit.getStandardUnit() |
Unit<? super Q> |
BaseUnit.getStandardUnit() |
Unit<? super Q> |
AlternateUnit.getStandardUnit() |
Unit<? extends Quantity> |
ProductUnit.getUnit(int index)
Returns the unit at the specified position.
|
static <Q extends Quantity> |
SI.GIGA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
109 |
static <Q extends Quantity> |
SI.HECTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
102 |
Unit<? extends Quantity> |
Unit.inverse()
Returns the inverse of this unit.
|
static <Q extends Quantity> |
SI.KILO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
103 |
static <Q extends Quantity> |
SI.MEGA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
106 |
static <Q extends Quantity> |
SI.MICRO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-6 |
static <Q extends Quantity> |
SI.MILLI(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-3 |
static <Q extends Quantity> |
SI.NANO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-9 |
Unit<?> |
UnitFormat.parseObject(String source,
ParsePosition pos)
Parses the text from a string to produce an object
(implements
java.text.Format ). |
abstract Unit<? extends Quantity> |
UnitFormat.parseProductUnit(CharSequence csq,
ParsePosition pos)
Parses a sequence of character to produce a unit or a rational product
of unit.
|
Unit<? extends Quantity> |
UnitFormat.DefaultFormat.parseProductUnit(CharSequence csq,
ParsePosition pos) |
abstract Unit<? extends Quantity> |
UnitFormat.parseSingleUnit(CharSequence csq,
ParsePosition pos)
Parses a sequence of character to produce a single unit.
|
Unit<? extends Quantity> |
UnitFormat.DefaultFormat.parseSingleUnit(CharSequence csq,
ParsePosition pos) |
static <Q extends Quantity> |
SI.PETA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1015 |
static <Q extends Quantity> |
SI.PICO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-12 |
Unit<Q> |
Unit.plus(double offset)
Returns the result of adding an offset to this unit.
|
Unit<? extends Quantity> |
Unit.pow(int n)
Returns a unit equals to this unit raised to an exponent.
|
Unit<? extends Quantity> |
Unit.root(int n)
Returns a unit equals to the given root of this unit.
|
static <Q extends Quantity> |
SI.TERA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1012 |
Unit<Q> |
Unit.times(double factor)
Returns the result of multiplying this unit by a an approximate factor
|
Unit<Q> |
Unit.times(long factor)
Returns the result of multiplying this unit by an exact factor.
|
Unit<? extends Quantity> |
Unit.times(Unit<?> that)
Returns the product of this unit with the one specified.
|
Unit<Q> |
Unit.transform(UnitConverter operation)
Returns the unit derived from this unit using the specified converter.
|
Unit<?> |
UnitFormat.DefaultFormat.unitFor(String name) |
Unit<?> |
UnitFormat.ASCIIFormat.unitFor(String name) |
static Unit<? extends Quantity> |
Unit.valueOf(CharSequence csq)
Returns a unit instance that is defined from the specified
character sequence using the
standard unit format . |
static <Q extends Quantity> |
SI.YOCTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-24 |
static <Q extends Quantity> |
SI.YOTTA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1024 |
static <Q extends Quantity> |
SI.ZEPTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-21 |
static <Q extends Quantity> |
SI.ZETTA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1021 |
Modifier and Type | Method and Description |
---|---|
abstract Set<Unit<?>> |
SystemOfUnits.getUnits()
Returns a read only view over the units defined in this system.
|
Set<Unit<?>> |
SI.getUnits()
Returns a read only view over theunits defined in this class.
|
Set<Unit<?>> |
NonSI.getUnits()
Returns a read only view over the units defined in this class.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
UnitFormat.alias(Unit<?> unit,
String alias)
Attaches a system-wide alias to this unit.
|
void |
UnitFormat.DefaultFormat.alias(Unit<?> unit,
String alias) |
static <Q extends Quantity> |
SI.ATTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-18 |
static <Q extends Quantity> |
SI.CENTI(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-2 |
CompoundUnit<Q> |
Unit.compound(Unit<Q> subunit)
Returns the combination of this unit with the specified sub-unit.
|
static <Q extends Quantity> |
SI.DECI(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-1 |
static <Q extends Quantity> |
SI.DEKA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
101 |
Unit<? extends Quantity> |
Unit.divide(Unit<?> that)
Returns the quotient of this unit with the one specified.
|
static <Q extends Quantity> |
SI.EXA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1018 |
static <Q extends Quantity> |
SI.FEMTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-15 |
abstract Appendable |
UnitFormat.format(Unit<?> unit,
Appendable appendable)
Formats the specified unit.
|
Appendable |
UnitFormat.DefaultFormat.format(Unit<?> unit,
Appendable appendable) |
Appendable |
UnitFormat.ASCIIFormat.format(Unit<?> unit,
Appendable appendable) |
UnitConverter |
Unit.getConverterTo(Unit<?> that)
Returns a converter of numeric values from this unit to another unit.
|
static <Q extends Quantity> |
SI.GIGA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
109 |
static <Q extends Quantity> |
SI.HECTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
102 |
boolean |
Unit.isCompatible(Unit<?> that)
Indicates if this unit is compatible with the unit specified.
|
static <Q extends Quantity> |
SI.KILO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
103 |
abstract void |
UnitFormat.label(Unit<?> unit,
String label)
Attaches a system-wide label to the specified unit.
|
void |
UnitFormat.DefaultFormat.label(Unit<?> unit,
String label) |
static <Q extends Quantity> |
SI.MEGA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
106 |
static <Q extends Quantity> |
SI.MICRO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-6 |
static <Q extends Quantity> |
SI.MILLI(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-3 |
String |
UnitFormat.DefaultFormat.nameFor(Unit<?> unit) |
String |
UnitFormat.ASCIIFormat.nameFor(Unit<?> unit) |
static <Q extends Quantity> |
SI.NANO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-9 |
static <Q extends Quantity> |
SI.PETA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1015 |
static <Q extends Quantity> |
SI.PICO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-12 |
static <Q extends Quantity> |
SI.TERA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1012 |
Unit<? extends Quantity> |
Unit.times(Unit<?> that)
Returns the product of this unit with the one specified.
|
static <Q extends Quantity> |
SI.YOCTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-24 |
static <Q extends Quantity> |
SI.YOTTA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1024 |
static <Q extends Quantity> |
SI.ZEPTO(Unit<Q> unit)
Returns the specified unit multiplied by the factor
10-21 |
static <Q extends Quantity> |
SI.ZETTA(Unit<Q> unit)
Returns the specified unit multiplied by the factor
1021 |
Constructor and Description |
---|
ProductUnit(Unit<?> productUnit)
Copy constructor (allows for parameterization of product units).
|
Modifier and Type | Class and Description |
---|---|
class |
Currency
This class represents a currency
Unit . |
Modifier and Type | Method and Description |
---|---|
Unit<? super Money> |
Currency.getStandardUnit() |
Modifier and Type | Method and Description |
---|---|
double |
Time.doubleValue(Unit<Duration> unit) |
double |
Height.doubleValue(Unit<Length> unit) |
double |
Altitude.doubleValue(Unit<Length> unit) |
double |
UTM.eastingValue(Unit<Length> unit)
Returns the projected distance of the position from the central meridian.
|
double |
LatLong.latitudeValue(Unit<Angle> unit)
Returns the latitude value as
double |
double |
LatLong.longitudeValue(Unit<Angle> unit)
Returns the longitude value as
double |
long |
Time.longValue(Unit<Duration> unit) |
long |
Height.longValue(Unit<Length> unit) |
long |
Altitude.longValue(Unit<Length> unit) |
double |
UTM.northingValue(Unit<Length> unit)
Returns the projected distance of the point from the equator.
|
Float64Vector |
XYZ.toVector(Unit<Length> unit)
Returns the x/y/z coordinates value as a 3-dimensional vector.
|
static XYZ |
XYZ.valueOf(double x,
double y,
double z,
Unit<Length> unit)
Returns the spatial position corresponding to the specified coordinates.
|
static LatLong |
LatLong.valueOf(double latitude,
double longitude,
Unit<Angle> unit)
Returns the surface position corresponding to the specified coordinates.
|
static Time |
Time.valueOf(double value,
Unit<Duration> unit)
Returns the temporal position corresponding to the specified coordinates.
|
static Height |
Height.valueOf(double value,
Unit<Length> unit)
Returns the vertical position corresponding to the specified coordinates.
|
static Altitude |
Altitude.valueOf(double value,
Unit<Length> unit)
Returns the vertical position corresponding to the specified coordinates.
|
static XYZ |
XYZ.valueOf(Float64Vector vector,
Unit<Length> unit)
Returns the spatial position corresponding to the specified
3-dimensional vector.
|
static UTM |
UTM.valueOf(int longitudeZone,
char latitudeZone,
double easting,
double northing,
Unit<Length> unit)
Returns the projected UTM position corresponding to the specified
coordinates.
|
double |
XYZ.xValue(Unit<Length> unit)
Returns the x coordinate value as
double |
double |
XYZ.yValue(Unit<Length> unit)
Returns the y coordinate value as
double |
double |
XYZ.zValue(Unit<Length> unit)
Returns the z coordinate value as
double |
Constructor and Description |
---|
Time(double value,
Unit<Duration> unit)
Creates the temporal position corresponding to the specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
Unit<Q> |
Amount.getUnit()
Returns the unit in which the
estimated value and absolute error
are stated. |
Modifier and Type | Method and Description |
---|---|
double |
Amount.doubleValue(Unit<Q> unit) |
long |
Amount.longValue(Unit<Q> unit) |
static <Q extends Quantity> |
Amount.rangeOf(double minimum,
double maximum,
Unit<Q> unit)
Returns the measure corresponding to the specified interval stated
in the specified unit.
|
<R extends Quantity> |
Amount.to(Unit<R> unit)
Returns the measure equivalent to this measure but stated in the
specified unit.
|
static <Q extends Quantity> |
Amount.valueOf(double value,
double error,
Unit<Q> unit)
Returns the measure corresponding to the specified approximate value
and measurement error, both stated in the specified unit.
|
static <Q extends Quantity> |
Amount.valueOf(double value,
Unit<Q> unit)
Returns the measure corresponding to an approximate value
(
double ) stated in the specified unit;
the precision of the measure is assumed to be the
double precision (64 bits IEEE 754 format). |
static <Q extends Quantity> |
Amount.valueOf(long value,
Unit<Q> unit)
Returns the exact measure corresponding to the value stated in the
specified unit.
|
Modifier and Type | Method and Description |
---|---|
Unit<?> |
CoordinateSystemAxis.getUnit()
The unit of measure used for this coordinate system axis.
|
Copyright © 2012. All Rights Reserved.