NSMutableDictionary< K, V > Class Reference

Inherits com::webobjects::foundation::NSDictionary< K, V >.

Collaboration diagram for NSMutableDictionary< K, V >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void addEntriesFromDictionary (NSDictionary<?extends K,?extends V > otherDictionary)
void clear ()
Object clone ()
NSDictionary< K, V > immutableClone ()
NSMutableDictionary< K, V > mutableClone ()
 NSMutableDictionary (Map<?extends K,?extends V > map, boolean ignoreNull)
 NSMutableDictionary (Map<?extends K,?extends V > map)
 NSMutableDictionary (Dictionary<?extends K,?extends V > dictionary, boolean ignoreNull)
 NSMutableDictionary (NSDictionary<?extends K,?extends V > otherDictionary)
 NSMutableDictionary (NSArray<?extends V > objects, NSArray<?extends K > keys)
 NSMutableDictionary (V[] objects, K[] keys)
 NSMutableDictionary (V object, K key)
 NSMutableDictionary (int capacity)
 NSMutableDictionary ()
put (K key, V value)
void putAll (Map<?extends K,?extends V > m)
remove (Object key)
void removeAllObjects ()
removeObjectForKey (Object key)
void removeObjectsForKeys (NSArray<?> keys)
void setDictionary (NSDictionary<?extends K,?extends V > otherDictionary)
void setObjectForKey (V object, K key)
void takeValueForKey (Object value, String key)
Collection< V > values ()

Static Public Attributes

static final Class _CLASS = _NSUtilitiesExtra._classWithFullySpecifiedNamePrime("com.webobjects.foundation.NSMutableDictionary")

Static Package Attributes

static final long serialVersionUID = 6690723083816355576L


Detailed Description

NSMutableDictionary reimplementation to support JDK 1.5 templates and the proper collection methods. Use with

 NSMutableDictionary<String, String> env = new NSMutableDictionary<String, String>(System.getenv(), true);

 for (String key : env)
 	logger.debug(env.valueForKey(key));
 

Parameters:
&lt;K&gt; type of key contents
&lt;V&gt; type of value contents

Constructor & Destructor Documentation

NSMutableDictionary (  ) 

NSMutableDictionary ( int  capacity  ) 

NSMutableDictionary ( object,
key 
)

NSMutableDictionary ( V[]  objects,
K[]  keys 
)

NSMutableDictionary ( NSArray<?extends V >  objects,
NSArray<?extends K >  keys 
)

NSMutableDictionary ( NSDictionary<?extends K,?extends V >  otherDictionary  ) 

NSMutableDictionary ( Dictionary<?extends K,?extends V >  dictionary,
boolean  ignoreNull 
)

NSMutableDictionary ( Map<?extends K,?extends V >  map  ) 

NSMutableDictionary ( Map<?extends K,?extends V >  map,
boolean  ignoreNull 
)


Member Function Documentation

void addEntriesFromDictionary ( NSDictionary<?extends K,?extends V >  otherDictionary  ) 

void clear (  ) 

Remove all mappings from this map.

Reimplemented from NSDictionary< K, V >.

Object clone (  ) 

Reimplemented from NSDictionary< K, V >.

NSDictionary<K, V> immutableClone (  ) 

Reimplemented from NSDictionary< K, V >.

NSMutableDictionary<K, V> mutableClone (  ) 

Reimplemented from NSDictionary< K, V >.

V put ( key,
value 
)

Associate the value with key in this map. If the map previously contained a mapping for key, the old value will be replaced by value.

Parameters:
key key to associate value with
value vaue to be associated with key
Returns:
previous value associated with specified key, or null if there was no mapping for key.

Reimplemented from NSDictionary< K, V >.

void putAll ( Map<?extends K,?extends V >  m  ) 

Copy all mappings from m to this map.

Parameters:
m Mappings to be stored in this map.

Reimplemented from NSDictionary< K, V >.

V remove ( Object  key  ) 

Remove mapping for key from this map if it is present.

Parameters:
key key whose mapping is to be removed from the map.
Returns:
previous value associated with key, or null if there was no mapping for key.

Reimplemented from NSDictionary< K, V >.

void removeAllObjects (  ) 

V removeObjectForKey ( Object  key  ) 

void removeObjectsForKeys ( NSArray<?>  keys  ) 

void setDictionary ( NSDictionary<?extends K,?extends V >  otherDictionary  ) 

void setObjectForKey ( object,
key 
)

void takeValueForKey ( Object  value,
String  key 
)

Reimplemented from NSDictionary< K, V >.

Collection<V> values (  ) 

Return a collection view of the values contained in this map.

Reimplemented from NSDictionary< K, V >.


Member Data Documentation

final Class _CLASS = _NSUtilitiesExtra._classWithFullySpecifiedNamePrime("com.webobjects.foundation.NSMutableDictionary") [static]

Reimplemented from NSDictionary< K, V >.

final long serialVersionUID = 6690723083816355576L [static, package]

Reimplemented from NSDictionary< K, V >.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:32 2012 for Project Wonder by  doxygen 1.5.8