org.apache.directory.server.protocol.shared
Class MapAdapter

java.lang.Object
  extended by org.apache.directory.server.protocol.shared.MapAdapter
All Implemented Interfaces:
Map<Object,Object>

public class MapAdapter
extends Object
implements Map<Object,Object>

Adapter to add the Map interface to Dictionary's. Many of the OSGi interfaces use Dictionary's for legacy reasons, but the Dictionary is obsolete.

Author:
Apache Directory Project

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
MapAdapter(Dictionary<Object,Object> dictionary)
          Creates a new instance of MapAdapter.
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<Object,Object>> entrySet()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Set<Object> keySet()
           
 Object put(Object arg0, Object arg1)
           
 void putAll(Map arg0)
           
 Object remove(Object key)
           
 int size()
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

MapAdapter

public MapAdapter(Dictionary<Object,Object> dictionary)
Creates a new instance of MapAdapter.

Parameters:
dictionary -
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<Object,Object>
See Also:
Map.clear()

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<Object,Object>
See Also:
Map.containsKey(java.lang.Object)

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<Object,Object>
See Also:
Map.containsValue(java.lang.Object)

entrySet

public Set<Map.Entry<Object,Object>> entrySet()
Specified by:
entrySet in interface Map<Object,Object>
See Also:
Map.entrySet()

get

public Object get(Object key)
Specified by:
get in interface Map<Object,Object>
See Also:
Map.get(java.lang.Object)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<Object,Object>
See Also:
Map.isEmpty()

keySet

public Set<Object> keySet()
Specified by:
keySet in interface Map<Object,Object>
See Also:
Map.keySet()

put

public Object put(Object arg0,
                  Object arg1)
Specified by:
put in interface Map<Object,Object>
See Also:
Map.put(java.lang.Object, java.lang.Object)

putAll

public void putAll(Map arg0)
Specified by:
putAll in interface Map<Object,Object>
See Also:
Map.putAll(java.util.Map)

remove

public Object remove(Object key)
Specified by:
remove in interface Map<Object,Object>
See Also:
Map.remove(java.lang.Object)

size

public int size()
Specified by:
size in interface Map<Object,Object>
See Also:
Map.size()

values

public Collection<Object> values()
Specified by:
values in interface Map<Object,Object>
See Also:
Map.values()


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.