Package org.osgi.framework
Class FrameworkUtil.CaseInsensitiveMap
- Enclosing class:
FrameworkUtil
private static final class FrameworkUtil.CaseInsensitiveMap
extends AbstractMap<String,Object>
implements Map<String,Object>
This Map is used for case-insensitive key lookup during filter
evaluation. This Map implementation only supports the get operation using
a String key as no other operations are used by the Filter
implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveMap
(Dictionary<String, ?> dictionary) Create a case insensitive map from the specified dictionary. -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
dictionary
-
keys
-
-
Constructor Details
-
CaseInsensitiveMap
CaseInsensitiveMap(Dictionary<String, ?> dictionary) Create a case insensitive map from the specified dictionary.- Parameters:
dictionary
-- Throws:
IllegalArgumentException
- Ifdictionary
contains case variants of the same key name.
-
-
Method Details