Document.LongProperty.DefaultSerializer


public final class Document.LongProperty.DefaultSerializer implements LongSerializer


Summary

Public constructors

Public methods

@NonNull Long
deserialize(long value)

Deserializes a T from a long.

long

Serializes a T to a long.

Public constructors

DefaultSerializer

Added in 1.1.0-alpha06
public DefaultSerializer()

Public methods

deserialize

Added in 1.1.0-alpha06
public @NonNull Long deserialize(long value)

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

serialize

Added in 1.1.0-alpha06
public long serialize(@NonNull Long value)

Serializes a T to a long.