Package org.apache.felix.utils.filter
Class FilterImpl.CaseInsensitiveDictionary
- java.lang.Object
-
- java.util.Dictionary
-
- org.apache.felix.utils.filter.FilterImpl.CaseInsensitiveDictionary
-
- Enclosing class:
- FilterImpl
private static class FilterImpl.CaseInsensitiveDictionary extends java.util.DictionaryThis Dictionary is used for case-insensitive key lookup during filter evaluation. This Dictionary implementation only supports the get operation using a String key as no other operations are used by the Filter implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Dictionarydictionaryprivate java.lang.String[]keys
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveDictionary(java.util.Dictionary dictionary)Create a case insensitive dictionary from the specified dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumerationelements()java.lang.Objectget(java.lang.Object o)booleanisEmpty()java.util.Enumerationkeys()java.lang.Objectput(java.lang.Object key, java.lang.Object value)java.lang.Objectremove(java.lang.Object key)intsize()
-
-
-
Constructor Detail
-
CaseInsensitiveDictionary
CaseInsensitiveDictionary(java.util.Dictionary dictionary)
Create a case insensitive dictionary from the specified dictionary.- Parameters:
dictionary-- Throws:
java.lang.IllegalArgumentException- Ifdictionarycontains case variants of the same key name.
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object o)
- Specified by:
getin classjava.util.Dictionary
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin classjava.util.Dictionary
-
keys
public java.util.Enumeration keys()
- Specified by:
keysin classjava.util.Dictionary
-
elements
public java.util.Enumeration elements()
- Specified by:
elementsin classjava.util.Dictionary
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
putin classjava.util.Dictionary
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
removein classjava.util.Dictionary
-
size
public int size()
- Specified by:
sizein classjava.util.Dictionary
-
-