Package javax.measure.test
Class TestConverter
Object
TestConverter
- All Implemented Interfaces:
 UnitConverter
- Direct Known Subclasses:
 MultiplyConverter,TestConverter.Pair
 Test class for our UnitConverter implementations.
 
- Version:
 - 0.8.1, $Date: 2016-02-11 $
 - Author:
 - Werner Keil
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis class represents converters made up of two or more separate converters (in matrix notation[pair] = [left] x [right]). - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionconcatenate(TestConverter that) Concatenates this physics converter with another unit converter.concatenate(UnitConverter converter) abstract doubleconvert(double value) abstract booleanList<? extends UnitConverter>abstract inthashCode()abstract TestConverterinverse()booleanMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UnitConverter
isLinear 
- 
Field Details
- 
IDENTITY
Holds identity converter. 
 - 
 - 
Constructor Details
- 
TestConverter
protected TestConverter()Default constructor. 
 - 
 - 
Method Details
- 
concatenate
Concatenates this physics converter with another unit converter. The resulting converter is equivalent to first converting by the specified converter (right converter), and then converting by this converter (left converter).- Parameters:
 that- the other converter.- Returns:
 - the concatenation of this converter with that converter.
 
 - 
isIdentity
- Specified by:
 isIdentityin interfaceUnitConverter
 - 
equals
 - 
hashCode
 - 
inverse
- Specified by:
 inversein interfaceUnitConverter
 - 
concatenate
- Specified by:
 concatenatein interfaceUnitConverter
 - 
getConversionSteps
- Specified by:
 getConversionStepsin interfaceUnitConverter
 - 
convert
- Specified by:
 convertin interfaceUnitConverter- Throws:
 IllegalArgumentException- if the value isnull.
 - 
convert
- Specified by:
 convertin interfaceUnitConverter
 
 -