Class CaseInsensitiveMap<V>
- java.lang.Object
 - 
- java.util.AbstractMap<String,V>
 - 
- org.apache.tapestry5.commons.util.CaseInsensitiveMap<V>
 
 
 
- 
- Type Parameters:
 V- the type of value stored
- All Implemented Interfaces:
 Serializable,Map<String,V>
public class CaseInsensitiveMap<V> extends AbstractMap<String,V> implements Serializable
An mapped collection where the keys are always strings and access to values is case-insensitive. The case of keys in the map is maintained, but on any access to a key (directly or indirectly), all key comparisons are performed in a case-insensitive manner. The map implementation is intended to support a reasonably finite number (dozens or hundreds, not thousands or millions of key/value pairs. Unlike HashMap, it is based on a sorted list of entries rather than hash bucket. It is also geared towards a largely static map, one that is created and then used without modification.- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object> 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CaseInsensitiveMap()CaseInsensitiveMap(int size)CaseInsensitiveMap(Map<String,? extends V> map) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)Set<Map.Entry<String,V>>entrySet()Vget(Object key)booleanisEmpty()Set<String>keySet()Vput(String key, V value)Vremove(Object key)intsize()- 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, putAll, toString, values 
- 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CaseInsensitiveMap
public CaseInsensitiveMap()
 
- 
CaseInsensitiveMap
public CaseInsensitiveMap(int size)
 
- 
CaseInsensitiveMap
public CaseInsensitiveMap(Map<String,? extends V> map)
 
 - 
 
- 
Method Detail
- 
clear
public void clear()
 
- 
isEmpty
public boolean isEmpty()
 
- 
size
public int size()
 
- 
containsKey
public boolean containsKey(Object key)
- Specified by:
 containsKeyin interfaceMap<String,V>- Overrides:
 containsKeyin classAbstractMap<String,V>
 
 - 
 
 -