Class CaseInsensitiveTrieMap<V>

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

public class CaseInsensitiveTrieMap<V> extends StringTrieMap<V>
An implementation of a Trie that stores strings, case-insensitively.
Author:
Matthew Tropiano
  • Constructor Details

    • CaseInsensitiveTrieMap

      public CaseInsensitiveTrieMap()
  • 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.
      Overrides:
      getSegmentsForKey in class StringTrieMap<V>
      Parameters:
      value - the key to generate significant segments for.
      Returns:
      the list of segments for the key.
    • equalityMethodForKey

      public boolean equalityMethodForKey(String object1, String object2)
      Description copied from class: AbstractTrieMap
      Determines if two keys are equal. This can be implemented differently in case a map has a different concept of what keys are considered equal.
      Overrides:
      equalityMethodForKey in class AbstractTrieMap<String,V,Character>
      Parameters:
      object1 - the first key.
      object2 - the second key.
      Returns:
      true if the keys are considered equal, false otherwise.