public class EncodingFactory extends Object
Encoding
for a given DataSeriesType
and
Encoding
.
Also useful to hide encoding implementations.Constructor | Description |
---|---|
EncodingFactory() |
Modifier and Type | Method | Description |
---|---|---|
<T> Encoding<T> |
createEncoding(DataSeriesType valueType,
EncodingID id) |
Create an encoding for the data series type and encoding id.
|
public <T> Encoding<T> createEncoding(DataSeriesType valueType, EncodingID id)
T
- encoding object type, like Integer or String.valueType
- data type of the values to be produced/consumed by the encodingid
- encoding id used for data serialization