Package javax.measure.test.quantity
Class DistanceQuantity
- Version:
- 0.7
- Author:
- Werner Keil
-
Nested Class Summary
Nested classes/interfaces inherited from interface Quantity
Quantity.Scale
-
Field Summary
Fields inherited from class TestQuantity
ONE, scalar, unit, value
-
Constructor Summary
ConstructorDescriptionDistanceQuantity
(double val, DistanceUnit un) DistanceQuantity
(Number val, Unit un) -
Method Summary
Modifier and TypeMethodDescriptionadd
(DistanceQuantity d1) convert
(DistanceUnit newUnit) divide
(double v) Quantity<?>
boolean
eq
(DistanceQuantity d1) boolean
ge
(DistanceQuantity d1) boolean
gt
(DistanceQuantity d1) inverse()
boolean
le
(DistanceQuantity d1) boolean
lt
(DistanceQuantity d1) multiply
(double v) Quantity<?>
multiply
(AreaQuantity a1) boolean
ne
(DistanceQuantity d1) negate()
showInUnits
(DistanceUnit u, int precision) Methods inherited from class TestQuantity
add, compareTo, eq, ge, getScale, getType, getUnit, getValue, gt, isEquivalentTo, le, lt, ne, showInUnits, subtract, toString
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface Quantity
getScale, getUnit, getValue, isEquivalentTo, toSystemUnit
-
Constructor Details
-
DistanceQuantity
-
DistanceQuantity
-
DistanceQuantity
public DistanceQuantity()
-
-
Method Details
-
add
-
subtract
-
eq
-
ne
-
gt
-
lt
-
ge
-
le
-
multiply
-
divide
-
multiply
-
multiply
-
convert
-
showInUnits
-
divide
-
to
-
subtract
-
add
-
divide
-
inverse
-
negate
-
multiply
-
multiply
-
asType
- Specified by:
asType
in interfaceQuantity<Length>
- Throws:
ClassCastException
-
multiply
-