org.mapdb / Serializer / LONG

LONG

static val LONG: GroupSerializer<Long>

A predefined Serializer that handles non-null Long whereby Longs are serialized to an 8 byte format. The Serializer also stores the Longs's size, allowing it to be used as a GroupSerializer in BTreeMaps.

This Serializer hashes Longs using the original Long#hashCode() method.

If a null value is passed to the Serializer, a NullPointerException will be thrown.