Class ChainConverter
- java.lang.Object
-
- de.timmfitschen.easyunits.UniqueSignatureObject
-
- de.timmfitschen.easyunits.conversion.AbstractConverter
-
- de.timmfitschen.easyunits.conversion.ChainConverter
-
public class ChainConverter extends AbstractConverter
This class is currently not used but it will be useful as soon as non-linear converters are implemented.- Author:
- tf
-
-
Constructor Summary
Constructors Constructor Description ChainConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter
concatenateNonIdentityConverter(Converter c)
Return a new Converter by concatenating another converter to this converter.Number
convert(Number value)
Return the result of an application of this converter on `value`.long
getSignature()
-
Methods inherited from class de.timmfitschen.easyunits.conversion.AbstractConverter
concatenate
-
Methods inherited from class de.timmfitschen.easyunits.UniqueSignatureObject
equals
-
-
-
-
Method Detail
-
concatenateNonIdentityConverter
protected Converter concatenateNonIdentityConverter(Converter c)
Description copied from class:AbstractConverter
Return a new Converter by concatenating another converter to this converter. The new converter is equivalent to applying the `nextConverter` on the result of a conversion with this converter.- Specified by:
concatenateNonIdentityConverter
in classAbstractConverter
- Returns:
- a new converter
-
getSignature
public long getSignature()
-
-