Package javax.measure.test.quantity
Class TemperatureQuantity
- All Implemented Interfaces:
 Comparable<Quantity<Temperature>>,Quantity<Temperature>,Temperature
- Version:
 - 1.3, $Date: 2018-12-17 $
 - 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
ConstructorsConstructorDescriptionTemperatureQuantity(double val, TemperatureUnit un) TemperatureQuantity(Number val, Unit u)  - 
Method Summary
Modifier and TypeMethodDescriptionadd(Quantity<Temperature> that) intCompares this quantity to the specified Measurement quantity.protected TemperatureQuantityconvert(TemperatureUnit newUnit) divide(double v) Quantity<?>protected doubledoubleValue(Unit<Temperature> unit) protected booleanbooleaneq(TestQuantity<Temperature> dq) getUnit()getValue()inverse()booleanisZero()Quantity<?>negate()subtract(Quantity<Temperature> that) to(Unit<Temperature> unit) toString(boolean withUnit, boolean withSpace, int precision) Methods inherited from class TestQuantity
add, ge, getScale, getType, 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, isEquivalentTo, toSystemUnit 
- 
Constructor Details
- 
TemperatureQuantity
 - 
TemperatureQuantity
 - 
TemperatureQuantity
 
 - 
 - 
Method Details
- 
isZero
 - 
add
 - 
subtract
 - 
eq
 - 
divide
 - 
convert
 - 
getScalar
 - 
toString
 - 
getValue
- Specified by:
 getValuein interfaceQuantity<Temperature>- Overrides:
 getValuein classTestQuantity<Temperature>
 - 
getUnit
- Specified by:
 getUnitin interfaceQuantity<Temperature>- Overrides:
 getUnitin classTestQuantity<Temperature>
 - 
multiply
- Specified by:
 multiplyin interfaceQuantity<Temperature>
 - 
multiply
- Specified by:
 multiplyin interfaceQuantity<Temperature>
 - 
inverse
- Specified by:
 inversein interfaceQuantity<Temperature>
 - 
doubleValue
 - 
to
- Specified by:
 toin interfaceQuantity<Temperature>
 - 
eq
- Overrides:
 eqin classTestQuantity<Temperature>
 - 
divide
- Specified by:
 dividein interfaceQuantity<Temperature>
 - 
subtract
- Specified by:
 subtractin interfaceQuantity<Temperature>
 - 
add
- Specified by:
 addin interfaceQuantity<Temperature>
 - 
divide
- Specified by:
 dividein interfaceQuantity<Temperature>
 - 
compareTo
Description copied from class:TestQuantityCompares this quantity to the specified Measurement quantity. The default implementation compares theQuantity.getValue()of both this quantity and the specified Quantity stated in the same unit (this quantity'sunit).- Specified by:
 compareToin interfaceComparable<Quantity<Temperature>>- Overrides:
 compareToin classTestQuantity<Temperature>- Returns:
 - a negative integer, zero, or a positive integer as this quantity is less than, equal to, or greater than the specified Quantity quantity.
 
 - 
negate
- Specified by:
 negatein interfaceQuantity<Temperature>
 - 
asType
- Specified by:
 asTypein interfaceQuantity<Temperature>- Throws:
 ClassCastException
 
 -