org.mapdb / Serializer / SHORT


static val SHORT: GroupSerializer<Short>

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

This Serializer hashes Shorts using the original Short#hashCode() method.

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