| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CaseInsensitiveMap(int
the initial capacity initialCapacity)Creates new instance of case-insensitive map with specified initial capacity. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsKey(Object
The key whose presence in this map is to be tested key)Overrides java. Implements java. Returns |
| public V | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| public V | put(String
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides java. Implements java. Associates the specified value with the specified key in this map. |
| public V | putIfAbsent(String
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides java. Overrides default java. If the specified key is not already associated with a value (or is mapped
to |
| public V | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. Removes the mapping for the specified key from this map if present. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CaseInsensitiveMap | back to summary |
|---|---|
| public CaseInsensitiveMap() Creates new instance of case-insensitive map. | |
| CaseInsensitiveMap | back to summary |
|---|---|
| public CaseInsensitiveMap(int initialCapacity) Creates new instance of case-insensitive map with specified initial capacity.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides java. Implements java. Doc from java. Returns | |
| get | back to summary |
|---|---|
| public V get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
A return value of
| |
| put | back to summary |
|---|---|
| public V put(String key, V value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
| |
| putIfAbsent | back to summary |
|---|---|
| public V putIfAbsent(String key, V value) Overrides java. Overrides default java. Doc from java. If the specified key is not already associated with a value (or is mapped
to
| |
| remove | back to summary |
|---|---|
| public V remove(Object key) Overrides java. Implements java. Doc from java. Removes the mapping for the specified key from this map if present. | |