Project Wonder 5.0.0.8795

er.extensions.foundation
Class ERXMutableDictionary.ThreadSafeDictionary

java.lang.Object
  extended by com.webobjects.foundation.NSDictionary<K,V>
      extended by com.webobjects.foundation.NSMutableDictionary
          extended by er.extensions.foundation.ERXMutableDictionary
              extended by er.extensions.foundation.ERXMutableDictionary.ThreadSafeDictionary
All Implemented Interfaces:
_NSFoundationCollection, NSCoding, NSKeyValueCoding, NSKeyValueCodingAdditions, Serializable, Cloneable, Map
Enclosing class:
ERXMutableDictionary

public static class ERXMutableDictionary.ThreadSafeDictionary
extends ERXMutableDictionary

Simple thread safe wrapper. May or may not be correct, but it doesn't matter as you will never, *ever* call this directly, but call ERXMutableDictionary.synchronizedDictionary(); instead and we will fix all the bugs in due time.

Author:
ak
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class er.extensions.foundation.ERXMutableDictionary
ERXMutableDictionary.ThreadSafeDictionary
 
Nested classes/interfaces inherited from class com.webobjects.foundation.NSDictionary
NSDictionary._JavaNSDictionaryMapEntry<P,Q>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSCoding
NSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
 
Fields inherited from class er.extensions.foundation.ERXMutableDictionary
serialVersionUID
 
Fields inherited from class com.webobjects.foundation.NSMutableDictionary
_CLASS
 
Fields inherited from class com.webobjects.foundation.NSDictionary
_capacity, _count, _deletionLimit, _entrySetCache, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _keySetCache, _MAP_ENTRY_CLASS, _NSDictionaryClassHashCode, _NSDictionaryMapEntryHashCode, _objects, _objectsCache, EmptyDictionary
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Constructor Summary
ERXMutableDictionary.ThreadSafeDictionary(NSMutableDictionary dictionary)
           
 
Method Summary
protected  void _clearDeletionsAndCollisions()
           
protected  void _ensureCapacity(int capacity)
           
protected  void _initializeDictionary()
           
 int _shallowHashCode()
           
 void addEntriesFromDictionary(NSDictionary otherDictionary)
           
 NSArray allKeys()
           
 NSArray allKeysForObject(Object object)
           
 Class classForCoder()
           
 int count()
           
 void encodeWithCoder(NSCoder coder)
           
 boolean equals(Object object)
           
 int hashCode()
           
 HashMap hashMap()
           
 Hashtable hashtable()
           
 NSDictionary immutableClone()
           
 boolean isEqualToDictionary(NSDictionary otherDictionary)
           
 Enumeration keyEnumerator()
           
protected  Object[] keysNoCopy()
           
 NSMutableDictionary mutableClone()
           
 Enumeration objectEnumerator()
           
 Object objectForKey(Object key)
           
 NSArray objectsForKeys(NSArray keys, Object notFoundMarker)
           
protected  Object[] objectsNoCopy()
           
 void removeAllObjects()
           
 Object removeObjectForKey(Object key)
           
 void removeObjectsForKeys(NSArray keys)
           
 void setDictionary(NSDictionary otherDictionary)
           
 void setObjectForKey(Object object, Object key)
           
 void takeValueForKey(Object value, String key)
           
 void takeValueForKeyPath(Object value, String keyPath)
           
 String toString()
           
 Object valueForKey(String key)
           
 Object valueForKeyPath(String keyPath)
           
 
Methods inherited from class er.extensions.foundation.ERXMutableDictionary
allValues, booleanObjectForKey, clear, clone, containsKey, containsValue, entrySet, fromBlob, fromPropertyList, get, isEmpty, keySet, put, putAll, remove, size, stringObjectForKey, synchronizedDictionary, synchronizedDictionary, synchronizedDictionary, toBlob, toBlob, toBlob, toPropertyList, toPropertyList, values
 
Methods inherited from class com.webobjects.foundation.NSDictionary
decodeObject, emptyDictionary
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXMutableDictionary.ThreadSafeDictionary

public ERXMutableDictionary.ThreadSafeDictionary(NSMutableDictionary dictionary)
Method Detail

addEntriesFromDictionary

public void addEntriesFromDictionary(NSDictionary otherDictionary)
Overrides:
addEntriesFromDictionary in class NSMutableDictionary

immutableClone

public NSDictionary immutableClone()
Overrides:
immutableClone in class NSMutableDictionary

mutableClone

public NSMutableDictionary mutableClone()
Overrides:
mutableClone in class NSMutableDictionary

removeAllObjects

public void removeAllObjects()
Overrides:
removeAllObjects in class NSMutableDictionary

removeObjectForKey

public Object removeObjectForKey(Object key)
Overrides:
removeObjectForKey in class NSMutableDictionary

removeObjectsForKeys

public void removeObjectsForKeys(NSArray keys)
Overrides:
removeObjectsForKeys in class NSMutableDictionary

setDictionary

public void setDictionary(NSDictionary otherDictionary)
Overrides:
setDictionary in class NSMutableDictionary

setObjectForKey

public void setObjectForKey(Object object,
                            Object key)
Overrides:
setObjectForKey in class NSMutableDictionary

takeValueForKey

public void takeValueForKey(Object value,
                            String key)
Specified by:
takeValueForKey in interface NSKeyValueCoding
Overrides:
takeValueForKey in class NSMutableDictionary

_clearDeletionsAndCollisions

protected void _clearDeletionsAndCollisions()
Overrides:
_clearDeletionsAndCollisions in class NSDictionary

_ensureCapacity

protected void _ensureCapacity(int capacity)
Overrides:
_ensureCapacity in class NSDictionary

_initializeDictionary

protected void _initializeDictionary()
Overrides:
_initializeDictionary in class NSDictionary

_shallowHashCode

public int _shallowHashCode()
Specified by:
_shallowHashCode in interface _NSFoundationCollection
Overrides:
_shallowHashCode in class NSDictionary

allKeys

public NSArray allKeys()
Overrides:
allKeys in class NSDictionary

allKeysForObject

public NSArray allKeysForObject(Object object)
Overrides:
allKeysForObject in class NSDictionary

classForCoder

public Class classForCoder()
Specified by:
classForCoder in interface NSCoding
Overrides:
classForCoder in class NSDictionary

count

public int count()
Overrides:
count in class NSDictionary

encodeWithCoder

public void encodeWithCoder(NSCoder coder)
Specified by:
encodeWithCoder in interface NSCoding
Overrides:
encodeWithCoder in class NSDictionary

equals

public boolean equals(Object object)
Specified by:
equals in interface Map
Overrides:
equals in class NSDictionary

hashCode

public int hashCode()
Specified by:
hashCode in interface Map
Overrides:
hashCode in class NSDictionary

hashMap

public HashMap hashMap()
Overrides:
hashMap in class NSDictionary

hashtable

public Hashtable hashtable()
Overrides:
hashtable in class NSDictionary

isEqualToDictionary

public boolean isEqualToDictionary(NSDictionary otherDictionary)
Overrides:
isEqualToDictionary in class NSDictionary

keyEnumerator

public Enumeration keyEnumerator()
Overrides:
keyEnumerator in class NSDictionary

keysNoCopy

protected Object[] keysNoCopy()
Overrides:
keysNoCopy in class NSDictionary

objectEnumerator

public Enumeration objectEnumerator()
Overrides:
objectEnumerator in class NSDictionary

objectForKey

public Object objectForKey(Object key)
Overrides:
objectForKey in class NSDictionary

objectsForKeys

public NSArray objectsForKeys(NSArray keys,
                              Object notFoundMarker)
Overrides:
objectsForKeys in class NSDictionary

objectsNoCopy

protected Object[] objectsNoCopy()
Overrides:
objectsNoCopy in class NSDictionary

takeValueForKeyPath

public void takeValueForKeyPath(Object value,
                                String keyPath)
Specified by:
takeValueForKeyPath in interface NSKeyValueCodingAdditions
Overrides:
takeValueForKeyPath in class NSDictionary

toString

public String toString()
Overrides:
toString in class NSDictionary

valueForKey

public Object valueForKey(String key)
Specified by:
valueForKey in interface NSKeyValueCoding
Overrides:
valueForKey in class NSDictionary

valueForKeyPath

public Object valueForKeyPath(String keyPath)
Specified by:
valueForKeyPath in interface NSKeyValueCodingAdditions
Overrides:
valueForKeyPath in class NSDictionary

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.