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 a String, and for deserialising it back again. It must also be able to deal with serialising null values.
    • Method Detail

      • serialiseNull

        default String serialiseNull()
        Handle an incoming null value and generate an appropriate String representation.
        Specified by:
        serialiseNull in interface Serialiser<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 interface Serialiser<INPUT,​String>
        Returns:
        the deserialised object