Interface Converter
-
- All Superinterfaces:
Signed
- All Known Subinterfaces:
Invertible
- All Known Implementing Classes:
AbstractConverter
,ChainConverter
,LinearConverter
,OffsetConverter
,Prefix
,ProductConverter
public interface Converter extends Signed
-
-
Field Summary
Fields Modifier and Type Field Description static LinearConverter
IDENTITY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Converter
concatenate(Converter nextConverter)
Return a converter which is equivalent to applying the `nextConverter` on the result of a conversion with this converter.Number
convert(Number value)
Return the result of an application of this converter on `value`.-
Methods inherited from interface de.timmfitschen.easyunits.Signed
getSignature
-
-
-
-
Field Detail
-
IDENTITY
static final LinearConverter IDENTITY
-
-
Method Detail
-
concatenate
Converter concatenate(Converter nextConverter)
Return a converter which is equivalent to applying the `nextConverter` on the result of a conversion with this converter. If `nextConverter` is null or the identity conversion, this converter is returned without instantiating a new converter. Otherwise, a new converter is instantiated while this converter is not altered.- Parameters:
nextConverter
-- Returns:
- a converter
-
-