org.apache.felix.scr.impl
Class ReadOnlyDictionary

java.lang.Object
  extended by java.util.Dictionary
      extended by org.apache.felix.scr.impl.ReadOnlyDictionary

public class ReadOnlyDictionary
extends Dictionary

The ReadOnlyDictionary is a Dictionary whose put(Object, Object) and remove(Object) methods have no effect and always return null.

Author:
fmeschbe

Method Summary
 Enumeration elements()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Enumeration keys()
           
 Object put(Object arg0, Object arg1)
          This method has no effect and always returns null as this instance is read-only and cannot modify and properties.
 Object remove(Object key)
          This method has no effect and always returns null as this instance is read-only and cannot modify and properties.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

elements

public Enumeration elements()
Specified by:
elements in class Dictionary

get

public Object get(Object key)
Specified by:
get in class Dictionary

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Dictionary

keys

public Enumeration keys()
Specified by:
keys in class Dictionary

put

public Object put(Object arg0,
                  Object arg1)
This method has no effect and always returns null as this instance is read-only and cannot modify and properties.

Specified by:
put in class Dictionary

remove

public Object remove(Object key)
This method has no effect and always returns null as this instance is read-only and cannot modify and properties.

Specified by:
remove in class Dictionary

size

public int size()
Specified by:
size in class Dictionary


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.