public class FieldSerialiser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FieldSerialiser.FieldSerialiserFunction
used as lambda expression for user-level code to read/write data into the given serialiser back-end
implementation
|
| Modifier and Type | Field and Description |
|---|---|
protected FieldSerialiser.FieldSerialiserFunction |
readerFunction |
protected FieldSerialiser.FieldSerialiserFunction |
writerFunction |
| Constructor and Description |
|---|
FieldSerialiser(FieldSerialiser.FieldSerialiserFunction reader,
FieldSerialiser.FieldSerialiserFunction writer,
Class<?> classPrototype,
Class<?>... classGenericArguments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCanonicalName() |
Class<?> |
getClassPrototype() |
List<Class<?>> |
getGenericsPrototypes() |
FieldSerialiser.FieldSerialiserFunction |
getReaderFunction() |
String |
getSimpleName() |
FieldSerialiser.FieldSerialiserFunction |
getWriterFunction() |
int |
hashCode() |
String |
toString() |
protected FieldSerialiser.FieldSerialiserFunction readerFunction
protected FieldSerialiser.FieldSerialiserFunction writerFunction
public FieldSerialiser(FieldSerialiser.FieldSerialiserFunction reader, FieldSerialiser.FieldSerialiserFunction writer, Class<?> classPrototype, Class<?>... classGenericArguments)
reader - consumer executed when reading from the back-end serialiser implementationwriter - consumer executed when writing to the back-end serialiser implementationclassPrototype - applicable class/interface prototype reference for which the consumers are applicable (e.g.
example 1: 'List.class' for List<String> or example 2: 'Map.class' for Map<Integer, String>)classGenericArguments - applicable generics definition (e.g. 'String.class' for List<String> or
'Integer.class, String.class' resp.)public String getCanonicalName()
public Class<?> getClassPrototype()
public List<Class<?>> getGenericsPrototypes()
public FieldSerialiser.FieldSerialiserFunction getReaderFunction()
public String getSimpleName()
public FieldSerialiser.FieldSerialiserFunction getWriterFunction()
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.