public class UnitCompositionHandlerYieldingNormalForm extends Object implements ConverterCompositionHandler
| Constructor and Description |
|---|
UnitCompositionHandlerYieldingNormalForm() |
| Modifier and Type | Method and Description |
|---|---|
AbstractConverter |
compose(AbstractConverter a,
AbstractConverter b,
BiPredicate<AbstractConverter,AbstractConverter> canReduce,
BinaryOperator<AbstractConverter> doReduce)
Takes two converters
left, right and returns a (not necessarily new)
converter that is equivalent to the mathematical composition of these:
compose(left, right) === left o right
Implementation Note: Instead of using AbstractConverter as parameter
and result types, this could be generalized to UnitConverter, but that
would require some careful changes within AbstractConverter itself. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waityieldingNormalFormpublic UnitCompositionHandlerYieldingNormalForm()
public AbstractConverter compose(AbstractConverter a, AbstractConverter b, BiPredicate<AbstractConverter,AbstractConverter> canReduce, BinaryOperator<AbstractConverter> doReduce)
ConverterCompositionHandlerleft, right and returns a (not necessarily new)
converter that is equivalent to the mathematical composition of these:
compose(left, right) === left o right
Implementation Note: Instead of using AbstractConverter as parameter and result types, this could be generalized to UnitConverter, but that would require some careful changes within AbstractConverter itself.
compose in interface ConverterCompositionHandlerCopyright © 2005–2021 Units of Measurement project. All rights reserved.