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: