Class ASCIIPrefixMap<V extends Serializable>

  • Type Parameters:
    V - The type of the value that is to be stored.
    All Implemented Interfaces:
    Serializable, Map<String,​V>, PrefixMap<V>

    public class ASCIIPrefixMap<V extends Serializable>
    extends StringPrefixMap<V>
    The ASCIIPrefixMap is an implementation of PrefixMap where the assumption is that the stored prefixes only contain characters that are in the human readable range of the ASCII encoding. Lookups using this one are about twice as fast as the StringPrefixMap
    See Also:
    Serialized Form
    • Constructor Detail

      • ASCIIPrefixMap

        public ASCIIPrefixMap​(boolean caseSensitive)
    • Method Detail

      • configureKryo

        public static void configureKryo​(Object kryoInstance)
        This is used to configure the provided Kryo instance if Kryo serialization is desired. The expected type here is Object because otherwise the Kryo library becomes a mandatory dependency on any project that uses Yauaa.
        Parameters:
        kryoInstance - The instance of com.esotericsoftware.kryo.Kryo that needs to be configured.