Class CharArrayMap<V>

  • All Implemented Interfaces:
    Map<Object,​V>

    public class CharArrayMap<V>
    extends AbstractMap<Object,​V>
    A simple class that stores key Strings as char[]'s in a hash table. Note that this is not a general purpose class. For example, it cannot remove items from the map, nor does it resize its hash table to be smaller, etc. It is designed to be quick to retrieve items by char[] keys without the necessity of converting to a String first.
    • Constructor Detail

      • CharArrayMap

        public CharArrayMap​(int startSize,
                            boolean ignoreCase)
        Create map with enough capacity to hold startSize terms
        Parameters:
        startSize - the initial capacity
        ignoreCase - false if and only if the set should be case sensitive otherwise true.
      • CharArrayMap

        public CharArrayMap​(Map<?,​? extends V> c,
                            boolean ignoreCase)
        Creates a map from the mappings in another map.
        Parameters:
        c - a map whose mappings to be copied
        ignoreCase - false if and only if the set should be case sensitive otherwise true.