V
- public class ERXMutableDictionary<K,V> extends NSMutableDictionary<K,V>
Map
functionality to NSMutableDictionary and has
helpers to en- and decode from database field.
ERPrototype name = mutableDictionary
Modifier and Type | Class and Description |
---|---|
static class |
ERXMutableDictionary.ThreadSafeDictionary<K,V>
Simple thread safe wrapper.
|
NSDictionary._JavaNSDictionaryMapEntry<P,Q>
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
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
_CLASS
_capacity, _count, _deletionLimit, _entrySetCache, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _keySetCache, _MAP_ENTRY_CLASS, _NSDictionaryClassHashCode, _NSDictionaryMapEntryHashCode, _objects, _objectsCache, CheckForNull, EmptyDictionary, IgnoreNull
_KeyPathSeparatorChar, KeyPathSeparator
NullValue
Constructor and Description |
---|
ERXMutableDictionary() |
ERXMutableDictionary(NSDictionary<? extends K,? extends V> d) |
Modifier and Type | Method and Description |
---|---|
Boolean |
booleanObjectForKey(K key) |
Object |
clone() |
static NSDictionary |
fromBlob(NSData d) |
static NSDictionary |
fromPropertyList(String plist) |
String |
stringObjectForKey(K key)
return the string value of an object for key
|
static <T,U> NSMutableDictionary<T,U> |
synchronizedDictionary()
Returns a new thread-safe mutable dictionary.
|
static <T,U> NSDictionary<T,U> |
synchronizedDictionary(NSDictionary<? extends T,? extends U> dict)
Returns either a new thread-safe dictionary, or just
returns dict if the dictionary is not mutable.
|
static <T,U> NSMutableDictionary<T,U> |
synchronizedDictionary(NSMutableDictionary<? extends T,? extends U> 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) |
addEntriesFromDictionary, clear, immutableClone, mutableClone, put, putAll, remove, removeAllObjects, removeObjectForKey, removeObjectsForKeys, setDictionary, setObjectForKey, takeValueForKey, values
_clearDeletionsAndCollisions, _ensureCapacity, _initializeDictionary, _shallowHashCode, allKeys, allKeysForObject, allValues, classForCoder, containsKey, containsValue, count, decodeObject, emptyDictionary, encodeWithCoder, entrySet, equals, get, hashCode, hashMap, hashtable, isEmpty, isEqualToDictionary, keyEnumerator, keySet, keysNoCopy, objectEnumerator, objectForKey, objectsForKeys, objectsNoCopy, of, of, of, of, of, of, of, of, of, of, of, size, takeValueForKeyPath, toString, valueForKey, valueForKeyPath
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final long serialVersionUID
public ERXMutableDictionary(NSDictionary<? extends K,? extends V> d)
public ERXMutableDictionary()
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 NSMutableDictionary<K,V>
public String stringObjectForKey(K key)
key
- the key which is linked to the objectpublic static <T,U> NSMutableDictionary<T,U> synchronizedDictionary(NSMutableDictionary<? extends T,? extends U> dict)
dict
- the dictionary to make thread-safepublic static <T,U> NSMutableDictionary<T,U> synchronizedDictionary()
U
- public static <T,U> NSDictionary<T,U> synchronizedDictionary(NSDictionary<? extends T,? extends U> dict)
dict
- the dictionary to make thread-safeCopyright © 2002 – 2024 Project Wonder.