Class LinearConverter
- java.lang.Object
-
- de.timmfitschen.easyunits.UniqueSignatureObject
-
- de.timmfitschen.easyunits.conversion.AbstractConverter
-
- de.timmfitschen.easyunits.conversion.LinearConverter
-
- All Implemented Interfaces:
Converter
,Invertible
,Signed
- Direct Known Subclasses:
OffsetConverter
,ProductConverter
public class LinearConverter extends AbstractConverter implements Invertible
-
-
Constructor Summary
Constructors Constructor Description LinearConverter(Number a, Number b, Number c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter
concatenateNonIdentityConverter(Converter converter)
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`.Number
getA()
Number
getB()
Number
getC()
CalculationHelper
getHelper()
LinearConverter
getInversion()
long
getSignature()
void
setHelper(CalculationHelper helper)
String
toString()
-
Methods inherited from class de.timmfitschen.easyunits.conversion.AbstractConverter
concatenate
-
Methods inherited from class de.timmfitschen.easyunits.UniqueSignatureObject
equals
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.timmfitschen.easyunits.conversion.Converter
concatenate
-
-
-
-
Method Detail
-
getHelper
public CalculationHelper getHelper()
-
setHelper
public void setHelper(CalculationHelper helper)
-
concatenateNonIdentityConverter
protected Converter concatenateNonIdentityConverter(Converter converter)
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()
- Specified by:
getSignature
in interfaceSigned
-
getInversion
public LinearConverter getInversion()
- Specified by:
getInversion
in interfaceInvertible
-
convert
public Number convert(Number value)
Description copied from interface:Converter
Return the result of an application of this converter on `value`.
-
getA
public Number getA()
-
getB
public Number getB()
-
getC
public Number getC()
-
-