|
Project Wonder 5.0.0.8795 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.foundation.NSDictionary<K,V>
com.webobjects.foundation.NSMutableDictionary
er.extensions.foundation.ERXMutableDictionary
public class ERXMutableDictionary
Adds Map functionality to NSMutableDictionary and has
helpers to en- and decode from database field.
ERPrototype name = mutableDictionary
| Nested Class Summary | |
|---|---|
static class |
ERXMutableDictionary.ThreadSafeDictionary
Simple thread safe wrapper. |
| 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 | |
|---|---|
static long |
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()
|
|
ERXMutableDictionary(NSDictionary d)
|
|
| Method Summary | |
|---|---|
NSArray |
allValues()
|
Boolean |
booleanObjectForKey(String key)
|
void |
clear()
Remove all mappings from this map. |
Object |
clone()
|
boolean |
containsKey(Object arg0)
|
boolean |
containsValue(Object arg0)
|
Set |
entrySet()
|
static NSDictionary |
fromBlob(NSData d)
|
static NSDictionary |
fromPropertyList(String plist)
|
Object |
get(Object arg0)
|
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object arg0,
Object arg1)
Associate the value with key in this map. |
void |
putAll(Map arg0)
Copy all mappings from m to this map. |
Object |
remove(Object arg0)
Remove mapping for key from this map if it is present. |
int |
size()
|
String |
stringObjectForKey(String key)
return the string value of an object for key |
static NSMutableDictionary |
synchronizedDictionary()
Returns a new thread-safe mutable dictionary. |
static NSDictionary |
synchronizedDictionary(NSDictionary dict)
Returns either a thread-safe wrapper for a mutable dictionary, or just returns dict if the dictionary is not mutable. |
static NSMutableDictionary |
synchronizedDictionary(NSMutableDictionary dict)
Returns a thread-safe mutable wrapper for the given mutable dictionary. |
NSData |
toBlob()
|
static NSData |
toBlob(ERXMutableDictionary dict)
|
static NSData |
toBlob(NSDictionary d)
|
String |
toPropertyList()
|
static String |
toPropertyList(NSDictionary dict)
|
Collection |
values()
Return a collection view of the values contained in this map. |
| Methods inherited from class com.webobjects.foundation.NSMutableDictionary |
|---|
addEntriesFromDictionary, immutableClone, mutableClone, removeAllObjects, removeObjectForKey, removeObjectsForKeys, setDictionary, setObjectForKey, takeValueForKey |
| Methods inherited from class com.webobjects.foundation.NSDictionary |
|---|
_clearDeletionsAndCollisions, _ensureCapacity, _initializeDictionary, _shallowHashCode, allKeys, allKeysForObject, classForCoder, count, decodeObject, emptyDictionary, encodeWithCoder, equals, hashCode, hashMap, hashtable, isEqualToDictionary, keyEnumerator, keysNoCopy, objectEnumerator, objectForKey, objectsForKeys, objectsNoCopy, takeValueForKeyPath, toString, valueForKey, valueForKeyPath |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public ERXMutableDictionary(NSDictionary d)
public ERXMutableDictionary()
| Method Detail |
|---|
public static NSData toBlob(NSDictionary d)
public static NSData toBlob(ERXMutableDictionary dict)
public static NSDictionary fromBlob(NSData d)
public static NSDictionary fromPropertyList(String plist)
public static String toPropertyList(NSDictionary dict)
public String toPropertyList()
public NSData toBlob()
public Object clone()
clone in class NSMutableDictionarypublic void clear()
com.webobjects.foundation.NSMutableDictionary
clear in interface Mapclear in class NSMutableDictionarypublic boolean containsKey(Object arg0)
containsKey in interface MapcontainsKey in class NSDictionarypublic boolean containsValue(Object arg0)
containsValue in interface MapcontainsValue in class NSDictionarypublic Set entrySet()
entrySet in interface MapentrySet in class NSDictionarypublic Object get(Object arg0)
get in interface Mapget in class NSDictionarypublic boolean isEmpty()
isEmpty in interface MapisEmpty in class NSDictionarypublic Set keySet()
keySet in interface MapkeySet in class NSDictionary
public Object put(Object arg0,
Object arg1)
com.webobjects.foundation.NSMutableDictionary
put in interface Mapput in class NSMutableDictionaryarg0 - key to associate value witharg1 - vaue to be associated with key
public void putAll(Map arg0)
com.webobjects.foundation.NSMutableDictionary
putAll in interface MapputAll in class NSMutableDictionaryarg0 - Mappings to be stored in this map.public Object remove(Object arg0)
com.webobjects.foundation.NSMutableDictionary
remove in interface Mapremove in class NSMutableDictionaryarg0 - key whose mapping is to be removed from the map.
public int size()
size in interface Mapsize in class NSDictionarypublic Collection values()
com.webobjects.foundation.NSMutableDictionary
values in interface Mapvalues in class NSMutableDictionarypublic NSArray allValues()
allValues in class NSDictionarypublic String stringObjectForKey(String key)
key - the key which is linked to the object
public Boolean booleanObjectForKey(String key)
key - public static NSMutableDictionary synchronizedDictionary(NSMutableDictionary dict)
dict - the dictionary to make thread-safe
public static NSMutableDictionary synchronizedDictionary()
public static NSDictionary synchronizedDictionary(NSDictionary dict)
dict - the dictionary to make thread-safe
|
Last updated: Fri, Jan 9, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||