Package javax.measure.test
Class TestConverter.Pair
Object
TestConverter
Pair
- All Implemented Interfaces:
UnitConverter
- Enclosing class:
- TestConverter
This class represents converters made up of two or more separate converters (in matrix notation
[pair] = [left] x [right]
).-
Nested Class Summary
Nested classes/interfaces inherited from class TestConverter
TestConverter.Pair
-
Field Summary
Fields inherited from class TestConverter
IDENTITY
-
Constructor Summary
ConstructorDescriptionPair
(UnitConverter left, UnitConverter right) Creates a compound converter resulting from the combined transformation of the specified converters. -
Method Summary
Methods inherited from class TestConverter
concatenate, concatenate, convert
-
Constructor Details
-
Pair
Creates a compound converter resulting from the combined transformation of the specified converters.- Parameters:
left
- the left converter.right
- the right converter.- Throws:
IllegalArgumentException
- if either the left or right converter arenull
-
-
Method Details
-
isLinear
-
isIdentity
- Specified by:
isIdentity
in interfaceUnitConverter
- Overrides:
isIdentity
in classTestConverter
-
getConversionSteps
- Specified by:
getConversionSteps
in interfaceUnitConverter
- Overrides:
getConversionSteps
in classTestConverter
-
inverse
- Specified by:
inverse
in interfaceUnitConverter
- Specified by:
inverse
in classTestConverter
-
convert
- Specified by:
convert
in interfaceUnitConverter
- Specified by:
convert
in classTestConverter
-
equals
- Specified by:
equals
in classTestConverter
-
hashCode
- Specified by:
hashCode
in classTestConverter
-
getLeft
-
getRight
-