StringSerializer


public interface StringSerializer<T>


Serializes some T to and from a String.

Parameters
<T>

The custom type that can be serialized to a String.

Summary

Public methods

abstract @Nullable T

Deserializes a T from a String.

abstract @NonNull String
serialize(@NonNull T instance)

Serializes a T to a String.

Public methods

deserialize

Added in 1.1.0-alpha06
abstract @Nullabledeserialize(@NonNull String string)

Deserializes a T from a String. Returns null if deserialization failed.

serialize

Added in 1.1.0-alpha06
abstract @NonNull String serialize(@NonNull T instance)

Serializes a T to a String.