This project has retired. For details please refer to its Attic page.
CaseInsensitiveStringHashMap (Lens 2.1.0-beta-incubating API)

org.apache.lens.cube.metadata
Class CaseInsensitiveStringHashMap<T>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,T>
          extended by org.apache.lens.cube.metadata.CaseInsensitiveStringHashMap<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Cloneable, Map<String,T>

public class CaseInsensitiveStringHashMap<T>
extends HashMap<String,T>

HashMap from String to type T where the key is case insensitive.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
CaseInsensitiveStringHashMap()
           
 
Method Summary
 boolean containsKey(Object key)
           
 T get(Object key)
           
 T put(String key, T value)
           
 void putAll(Map<? extends String,? extends T> m)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

CaseInsensitiveStringHashMap

public CaseInsensitiveStringHashMap()
Method Detail

get

public T get(Object key)
Specified by:
get in interface Map<String,T>
Overrides:
get in class HashMap<String,T>

put

public T put(String key,
             T value)
Specified by:
put in interface Map<String,T>
Overrides:
put in class HashMap<String,T>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,T>
Overrides:
containsKey in class HashMap<String,T>

putAll

public void putAll(Map<? extends String,? extends T> m)
Specified by:
putAll in interface Map<String,T>
Overrides:
putAll in class HashMap<String,T>


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.