Package uk.gov.gchq.gaffer.serialisation
Interface ToStringSerialiser<INPUT>
-
- All Superinterfaces:
Serialiser<INPUT,String>
,Serializable
- All Known Implementing Classes:
StringToStringSerialiser
public interface ToStringSerialiser<INPUT> extends Serialiser<INPUT,String>
A class that implements this interface is responsible for serialising an object of class T to aString
, and for deserialising it back again. It must also be able to deal with serialising null values.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default INPUT
deserialiseEmpty()
Handle an empty String and reconstruct an appropriate representation in Object form.default String
serialiseNull()
Handle an incoming null value and generate an appropriate String representation.-
Methods inherited from interface uk.gov.gchq.gaffer.serialisation.Serialiser
canHandle, deserialise, isConsistent, preservesObjectOrdering, serialise
-
-
-
-
Method Detail
-
serialiseNull
default String serialiseNull()
Handle an incoming null value and generate an appropriate String representation.- Specified by:
serialiseNull
in interfaceSerialiser<INPUT,String>
- Returns:
- the serialised output
-
deserialiseEmpty
default INPUT deserialiseEmpty()
Handle an empty String and reconstruct an appropriate representation in Object form.- Specified by:
deserialiseEmpty
in interfaceSerialiser<INPUT,String>
- Returns:
- the deserialised object
-
-