org.mapdb / Serializer / STRING

STRING

static val STRING: GroupSerializer<String>

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

This Serializer hashes Strings using a specially tailored hash code method as opposed to the Serializer#STRING_ORIGHASH Serializer.

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

See Also
Serializer#STRING_ORIGHASH