|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Q - The type of the quantity.public interface Quantity<Q extends Quantity<Q>>
Property of a phenomenon, body, or substance, where the property has a magnitude that can be expressed as a number and a unit (adapted from VIM). Mass, time, distance, heat, and angular separation are among the familiar examples of quantitative properties.
Kind of quantity, represented by sub-types, are aspect common to mutually comparable quantities (source: VIM). Sub-types are used to specify the quantitative property associated to a class through class parameterization and to provide limited compile time dimension consistency.
Unit<Mass> pound = ...
Quantity<Length> size = ...
Sensor<Temperature> thermometer = ...
Vector3D<Speed> aircraftVelocity = ...
| Method Summary | |
|---|---|
Unit<Q> |
unit()
Returns the unit of this quantity value. |
Number |
value()
Returns the value of this quantity as a number stated in this quantity unit. |
| Method Detail |
|---|
Number value()
null).Unit<Q> unit()
null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||