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
Modifier and TypeClassDescriptionstatic final class
This class represents converters made up of two or more separate converters (in matrix notation[pair] = [left] x [right]
). -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconcatenate
(TestConverter that) Concatenates this physics converter with another unit converter.concatenate
(UnitConverter converter) abstract double
convert
(double value) abstract boolean
List<? extends UnitConverter>
abstract int
hashCode()
abstract TestConverter
inverse()
boolean
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isIdentity
in interfaceUnitConverter
-
equals
-
hashCode
-
inverse
- Specified by:
inverse
in interfaceUnitConverter
-
concatenate
- Specified by:
concatenate
in interfaceUnitConverter
-
getConversionSteps
- Specified by:
getConversionSteps
in interfaceUnitConverter
-
convert
- Specified by:
convert
in interfaceUnitConverter
- Throws:
IllegalArgumentException
- if the value isnull
.
-
convert
- Specified by:
convert
in interfaceUnitConverter
-