| 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.physics.amount |
Provides support for exact or arbitrary precision measurements.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DecimalMeasure<Q extends Quantity>
This class represents a measure whose value is an arbitrary-precision
decimal number.
|
interface |
Measurable<Q extends Quantity>
This interface represents the measurable, countable, or comparable
property or aspect of a thing.
|
class |
Measure<V,Q extends Quantity>
This class represents the result of a measurement stated in a
known unit.
|
class |
VectorMeasure<Q extends Quantity>
This class represents a measurement vector of two or more dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
DecimalMeasure should be used directly. |
static <Q extends Quantity> |
Measure.valueOf(BigDecimal decimal,
Unit<Q> unit,
MathContext mathContext)
Deprecated.
DecimalMeasure should be used directly and
MathContext specified explicitly when
converting. |
static <Q extends Quantity> |
DecimalMeasure.valueOf(CharSequence csq)
Returns the decimal measure for the specified textual representation.
|
static <Q extends Quantity> |
Measure.valueOf(double[] components,
Unit<Q> unit)
Deprecated.
VectorMeasure should be used directly. |
static <Q extends Quantity> |
VectorMeasure.valueOf(double[] components,
Unit<Q> unit)
Returns a multi-dimensional measurement vector.
|
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. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Acceleration
This interface represents the rate of change of velocity with respect to
time.
|
interface |
AmountOfSubstance
This interface represents the number of elementary entities (molecules, for
example) of a substance.
|
interface |
Angle
This interface represents the figure formed by two lines diverging from a
common point.
|
interface |
AngularAcceleration
This interface represents the rate of change of angular velocity with respect
to time.
|
interface |
AngularVelocity
This interface represents the rate of change of angular displacement
with respect to time.
|
interface |
Area
This interface represents the extent of a planar region or of the surface of
a solid measured in square units.
|
interface |
CatalyticActivity
This interface represents a catalytic activity.
|
interface |
DataAmount
This interface represents a measure of data amount.
|
interface |
DataRate
This interface represents the speed of data-transmission.
|
interface |
Dimensionless
This interface represents a dimensionless quantity.
|
interface |
Duration
This interface represents a period of existence or persistence.
|
interface |
DynamicViscosity
This interface represents the dynamic viscosity.
|
interface |
ElectricCapacitance
This interface represents an electric capacitance.
|
interface |
ElectricCharge
This interface represents an electric charge.
|
interface |
ElectricConductance
This interface represents an electric conductance.
|
interface |
ElectricCurrent
This interface represents the amount of electric charge flowing past
a specified circuit point per unit time.
|
interface |
ElectricInductance
This interface represents an electric inductance.
|
interface |
ElectricPotential
This interface represents an electric potential or electromotive force.
|
interface |
ElectricResistance
This interface represents an electric resistance.
|
interface |
Energy
This interface represents the capacity of a physical system to do work.
|
interface |
Force
This interface represents a quantity that tends to produce an acceleration
of a body in the direction of its application.
|
interface |
Frequency
This interface represents the number of times a specified phenomenon occurs
within a specified interval.
|
interface |
Illuminance
This interface represents an illuminance.
|
interface |
KinematicViscosity
This interface represents the diffusion of momentum.
|
interface |
Length
This interface represents the extent of something along its greatest
dimension or the extent of space between two objects or places.
|
interface |
LuminousFlux
This interface represents a luminous flux.
|
interface |
LuminousIntensity
This interface represents the luminous flux density per solid angle as
measured in a given direction relative to the emitting source.
|
interface |
MagneticFlux
This interface represents a magnetic flux.
|
interface |
MagneticFluxDensity
This interface represents a magnetic flux density.
|
interface |
Mass
This interface represents the measure of the quantity of matter that a body
or an object contains.
|
interface |
MassFlowRate
This interface represents the movement of mass per time.
|
interface |
Power
This interface represents the rate at which work is done.
|
interface |
Pressure
This interface represents a force applied uniformly over a surface.
|
interface |
RadiationDoseAbsorbed
This interface represents the amount of energy deposited per unit of
mass.
|
interface |
RadiationDoseEffective
This interface represents the effective (or "equivalent") dose of radiation
received by a human or some other living organism.
|
interface |
RadioactiveActivity
This interface represents a radioactive activity.
|
interface |
SolidAngle
This interface represents the angle formed by three or more planes intersecting
at a common point.
|
interface |
Temperature
This class represents the degree of hotness or coldness of a body or
an environment.
|
interface |
Torque
This interface represents the moment of a force.
|
interface |
Velocity
This interface represents a distance traveled divided by the time of travel.
|
interface |
Volume
This interface represents the amount of space occupied by a three-dimensional
object or region of space, expressed in cubic units.
|
interface |
VolumetricDensity
This interface represents a mass per unit volume of a substance under
specified conditions of pressure and temperature.
|
interface |
VolumetricFlowRate
This interface represents the volume of fluid passing a point in a system
per unit of time.
|
| 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. |
class |
Unit<Q extends Quantity>
This class represents a determinate
quantity (as of length, time, heat, or value) adopted as a standard
of measurement. |
| Modifier and Type | Method and Description |
|---|---|
<A extends Quantity> |
Unit.alternate(String symbol)
Returns a unit equivalent to this unit but used in expressions to
distinguish between quantities of a different nature but of the same
dimensions.
|
<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 |
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 |
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 |
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 |
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 |
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 |
|---|---|
Unit<? extends Quantity> |
Unit.divide(Unit<?> that)
Returns the quotient of this unit with the one specified.
|
Unit<? extends Quantity> |
ProductUnit.getUnit(int index)
Returns the unit at the specified position.
|
Unit<? extends Quantity> |
Unit.inverse()
Returns the inverse of this unit.
|
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.
|
abstract Unit<? extends Quantity> |
UnitFormat.parseSingleUnit(CharSequence csq,
ParsePosition pos)
Parses a sequence of character to produce a single 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.
|
Unit<? extends Quantity> |
Unit.times(Unit<?> that)
Returns the product of this unit with the one specified.
|
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. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Money
This interface represents something generally accepted as a medium of
exchange, a measure of value, or a means of payment.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Amount<Q extends Quantity>
This class represents a determinate or estimated amount for which
operations such as addition, subtraction, multiplication and division
can be performed (it implements the
Field interface). |
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
Amount<? extends Quantity> |
Amount.divide(Amount that)
Returns this measure divided by the one specified.
|
Amount<? extends Quantity> |
Amount.inverse()
Returns the multiplicative inverse of this measure.
|
Amount<? extends Quantity> |
Amount.pow(int exp)
Returns this measure raised at the specified exponent.
|
Amount<? extends Quantity> |
Amount.root(int n)
Returns the given root of this measure.
|
Amount<? extends Quantity> |
Amount.sqrt()
Returns the square root of this measure.
|
Amount<? extends Quantity> |
Amount.times(Amount that)
Returns the product of this measure with the one specified.
|