Class StringTrieMap<V>

Type Parameters:
V - the value type.
All Implemented Interfaces:
Iterable<Map.Entry<String,V>>
Direct Known Subclasses:
CaseInsensitiveTrieMap

public class StringTrieMap<V> extends AbstractTrieMap<String,V,Character>
An implementation of a Trie that stores strings mapped to values.
Author:
Matthew Tropiano
  • Constructor Details

    • StringTrieMap

      public StringTrieMap()
  • Method Details

    • getSegmentsForKey

      protected Character[] getSegmentsForKey(String value)
      Description copied from class: AbstractTrieMap
      Creates the segments necessary to find/store values with keys. This should always create the same segments for the same key.
      Specified by:
      getSegmentsForKey in class AbstractTrieMap<String,V,Character>
      Parameters:
      value - the key to generate significant segments for.
      Returns:
      the list of segments for the key.