Package javax.measure.test.quantity
Class VolumeQuantity
- All Implemented Interfaces:
Comparable<Quantity<Volume>>
,Quantity<Volume>
- Version:
- 0.6
- 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
ConstructorDescriptionVolumeQuantity
(double val, VolumeUnit un) VolumeQuantity
(Number val, Unit un) -
Method Summary
Modifier and TypeMethodDescriptionadd
(VolumeQuantity d1) convert
(VolumeUnit newUnit) divide
(double v) Quantity<?>
divide
(AreaQuantity a1) boolean
eq
(VolumeQuantity d1) boolean
ge
(VolumeQuantity d1) boolean
gt
(VolumeQuantity d1) inverse()
boolean
le
(VolumeQuantity d1) boolean
lt
(VolumeQuantity d1) multiply
(double v) Quantity<?>
boolean
ne
(VolumeQuantity d1) negate()
showInUnits
(VolumeUnit 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
toSystemUnit
-
Constructor Details
-
VolumeQuantity
public VolumeQuantity() -
VolumeQuantity
-
VolumeQuantity
-
-
Method Details
-
add
-
subtract
-
eq
-
ne
-
gt
-
lt
-
ge
-
le
-
multiply
-
divide
-
divide
-
divide
-
convert
-
showInUnits
-
divide
-
subtract
-
add
-
divide
-
inverse
-
multiply
-
to
-
multiply
-
negate
-
asType
- Throws:
ClassCastException
-