LongSerializer


public interface LongSerializer<T>


Serializes some T to and from a long.

Parameters
<T>

The custom type that can be serialized to a long.

Summary

Public methods

abstract @Nullable T
deserialize(long value)

Deserializes a T from a long.

abstract long
serialize(@NonNull T instance)

Serializes a T to a long.

Public methods

deserialize

Added in 1.1.0-alpha06
abstract @Nullabledeserialize(long value)

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

serialize

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

Serializes a T to a long.