org.apache.felix.utils.collections
Class DictionaryAsMap<U,V>

java.lang.Object
  extended by java.util.AbstractMap<U,V>
      extended by org.apache.felix.utils.collections.DictionaryAsMap<U,V>
All Implemented Interfaces:
java.util.Map<U,V>

public class DictionaryAsMap<U,V>
extends java.util.AbstractMap<U,V>

A wrapper around a dictionary access it as a Map


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
DictionaryAsMap(java.util.Dictionary<U,V> dict)
           
 
Method Summary
 java.util.Set<java.util.Map.Entry<U,V>> entrySet()
           
 V put(U key, V value)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DictionaryAsMap

public DictionaryAsMap(java.util.Dictionary<U,V> dict)
Method Detail

entrySet

public java.util.Set<java.util.Map.Entry<U,V>> entrySet()
Specified by:
entrySet in interface java.util.Map<U,V>
Specified by:
entrySet in class java.util.AbstractMap<U,V>

put

public V put(U key,
             V value)
Specified by:
put in interface java.util.Map<U,V>
Overrides:
put in class java.util.AbstractMap<U,V>


Copyright © 2011. All Rights Reserved.