Class StringTrieMap<V>
java.lang.Object
net.mtrop.doom.struct.trie.AbstractTrie<Map.Entry<String,V>, Character>
net.mtrop.doom.struct.trie.AbstractTrieMap<String, V, Character>
net.mtrop.doom.struct.trie.StringTrieMap<V>
- Type Parameters:
V- the value type.
- Direct Known Subclasses:
CaseInsensitiveTrieMap
An implementation of a Trie that stores strings mapped to values.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractTrie
AbstractTrie.Node<V,S>, AbstractTrie.Result<V, S>, AbstractTrie.TrieIterator<V, S> -
Field Summary
Fields inherited from class AbstractTrie
root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Character[]getSegmentsForKey(String value) Creates the segments necessary to find/store values with keys.Methods inherited from class AbstractTrieMap
containsKey, equalityMethod, equalityMethodForKey, get, getAfterKey, getAfterKey, getBeforeKey, getBeforeKey, getKeysAfterKey, getKeysAfterKey, getKeysBeforeKey, getKeysBeforeKey, getKeyWithRemainderByKey, getKeyWithRemainderByKey, getSegments, getWithRemainderByKey, getWithRemainderByKey, put, removeEntry, searchByKey, toArrayKeys, toArrayValuesMethods inherited from class AbstractTrie
add, clear, contains, getAfter, getAfter, getBefore, getBefore, getWithRemainder, getWithRemainder, isEmpty, iterator, remove, search, size, toArrayMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
StringTrieMap
public StringTrieMap()
-
-
Method Details
-
getSegmentsForKey
Description copied from class:AbstractTrieMapCreates the segments necessary to find/store values with keys. This should always create the same segments for the same key.- Specified by:
getSegmentsForKeyin classAbstractTrieMap<String, V, Character>- Parameters:
value- the key to generate significant segments for.- Returns:
- the list of segments for the key.
-