public static final class MapDB.SerializerSupplier extends Object implements MapDB.Serializers
Modifier | Constructor and Description |
---|---|
protected |
SerializerSupplier(ValueFactories factories) |
Modifier and Type | Method and Description |
---|---|
org.mapdb.BTreeKeySerializer<?> |
bTreeKeySerializerFor(Class<?> type,
Comparator<?> comparator,
boolean pack)
Obtain a serializer for the given key type.
|
org.mapdb.Serializer<?> |
nullSafeSerializerFor(Class<?> type)
Obtain a serializer for the given value type that can handle nulls.
|
org.mapdb.Serializer<?> |
serializerFor(Class<?> type)
Obtain a serializer for the given value type.
|
protected SerializerSupplier(ValueFactories factories)
public org.mapdb.Serializer<?> serializerFor(Class<?> type)
MapDB.Serializers
serializerFor
in interface MapDB.Serializers
type
- the type; may not be nullpublic org.mapdb.Serializer<?> nullSafeSerializerFor(Class<?> type)
MapDB.Serializers
nullSafeSerializerFor
in interface MapDB.Serializers
type
- the type; may not be nullpublic org.mapdb.BTreeKeySerializer<?> bTreeKeySerializerFor(Class<?> type, Comparator<?> comparator, boolean pack)
MapDB.Serializers
bTreeKeySerializerFor
in interface MapDB.Serializers
type
- the type; may not be nullcomparator
- the comparator; may not be nullpack
- true if the serializer can/should pack keys together when possible, or false otherwiseCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.