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
ConstructorsConstructorDescriptionDistanceQuantity(double val, DistanceUnit un) DistanceQuantity(Number val, Unit un)  - 
Method Summary
Modifier and TypeMethodDescriptionadd(DistanceQuantity d1) convert(DistanceUnit newUnit) divide(double v) Quantity<?>booleaneq(DistanceQuantity d1) booleange(DistanceQuantity d1) booleangt(DistanceQuantity d1) inverse()booleanle(DistanceQuantity d1) booleanlt(DistanceQuantity d1) multiply(double v) Quantity<?>multiply(AreaQuantity a1) booleanne(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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
 asTypein interfaceQuantity<Length>- Throws:
 ClassCastException
 - 
multiply
 
 -