org.mapdb / Serializer / DOUBLE

DOUBLE

static val DOUBLE: GroupSerializer<Double>

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

This Serializer hashes Doubles using the original Double#hashCode() method.

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