LongSerializer

Serializer for Long values.

Deserialization accepts Number (via toLong()) and String (via toLongOrNull()). All other types cause an IllegalArgumentException.

Since

1.0

Functions

Link copied to clipboard
open override fun deserialize(raw: Any): Long

Converts a raw storage value back into the typed representation.

Link copied to clipboard
open override fun serialize(value: Long): Any

Converts a typed value into a raw form suitable for storage (e.g. a string, number, or map).