V
- The type of the case insensitive map.public class CaseInsensitiveMap<V> extends org.forgerock.util.MapDecorator<String,V>
keySet()
method for example returns the original keys.
Note: The behavior of this class is undefined when wrapping a map that has keys that would result in duplicate case-insensitive keys.
Constructor and Description |
---|
CaseInsensitiveMap()
Constructs a new empty case-insensitive map.
|
CaseInsensitiveMap(Map<String,V> map)
Wraps an existing map with a new case insensitive map.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
V |
get(Object key) |
V |
put(String key,
V value) |
void |
putAll(Map<? extends String,? extends V> m) |
V |
remove(Object key) |
void |
sync()
Synchronizes the keys of this case insensitive map and those of the map it is wrapping.
|
public CaseInsensitiveMap()
HashMap
with default initial capacity and load factor.public CaseInsensitiveMap(Map<String,V> map)
map
- the map to wrap with a new case insensitive map.public void sync()
public void clear()
public boolean containsKey(Object key)
Copyright © 2014 ForgeRock AS. All rights reserved.