org.mapdb / Serializer / FLOAT


static val FLOAT: GroupSerializer<Float>

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

This Serializer hashes Floats using the original Float#hashCode() method.

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