org.slim3.commons.util
Class CaseInsensitiveMap<V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.slim3.commons.util.ArrayMap<String,V>
          extended by org.slim3.commons.util.CaseInsensitiveMap<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Map<String,V>

public final class CaseInsensitiveMap<V>
extends ArrayMap<String,V>

This map is case insensitive to the key.

Version:
3.0
Author:
higa
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.slim3.commons.util.ArrayMap
entrySet, INITIAL_CAPACITY, listTable, LOAD_FACTOR, mapTable, size, threshold
 
Constructor Summary
CaseInsensitiveMap()
          Constructor.
CaseInsensitiveMap(int capacity)
          Constructor.
 
Method Summary
 boolean containsKey(Object key)
           
 V get(Object key)
           
 V put(String key, V value)
           
 void putAll(Map map)
           
 V remove(Object key)
           
 
Methods inherited from class org.slim3.commons.util.ArrayMap
clear, clone, containsValue, entrySet, equals, get, getEntry, getKey, indexOf, isEmpty, readExternal, remove, set, size, toArray, toArray, writeExternal
 
Methods inherited from class java.util.AbstractMap
hashCode, keySet, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
hashCode, keySet, values
 

Constructor Detail

CaseInsensitiveMap

public CaseInsensitiveMap()
Constructor.


CaseInsensitiveMap

public CaseInsensitiveMap(int capacity)
Constructor.

Parameters:
capacity - the capacity.
Method Detail

get

public final V get(Object key)
Specified by:
get in interface Map<String,V>
Overrides:
get in class ArrayMap<String,V>

put

public final V put(String key,
                   V value)
Specified by:
put in interface Map<String,V>
Overrides:
put in class ArrayMap<String,V>

putAll

public final void putAll(Map map)
Specified by:
putAll in interface Map<String,V>
Overrides:
putAll in class ArrayMap<String,V>

remove

public final V remove(Object key)
Specified by:
remove in interface Map<String,V>
Overrides:
remove in class ArrayMap<String,V>

containsKey

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


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.