K - type of key contentsV - type of value contentspublic class NSMutableDictionary<K,V> extends NSDictionary<K,V>
NSMutableDictionary<String, String> env = new NSMutableDictionary<>(System.getenv(), true);
for (String key : env)
logger.debug(env.valueForKey(key));
NSDictionary._JavaNSDictionaryMapEntry<P,Q>com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Supportcom.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor| Modifier and Type | Field and Description |
|---|---|
static Class |
_CLASS |
_capacity, _count, _deletionLimit, _entrySetCache, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _keySetCache, _MAP_ENTRY_CLASS, _NSDictionaryClassHashCode, _NSDictionaryMapEntryHashCode, _objects, _objectsCache, CheckForNull, EmptyDictionary, IgnoreNull| Constructor and Description |
|---|
NSMutableDictionary() |
NSMutableDictionary(Dictionary<? extends K,? extends V> dictionary,
boolean ignoreNull) |
NSMutableDictionary(int capacity) |
NSMutableDictionary(Map<? extends K,? extends V> map) |
NSMutableDictionary(Map<? extends K,? extends V> map,
boolean ignoreNull) |
NSMutableDictionary(NSArray<? extends V> objects,
NSArray<? extends K> keys) |
NSMutableDictionary(NSDictionary<? extends K,? extends V> otherDictionary) |
NSMutableDictionary(V[] objects,
K[] keys) |
NSMutableDictionary(V object,
K key) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntriesFromDictionary(NSDictionary<? extends K,? extends V> otherDictionary) |
void |
clear()
Remove all mappings from this map.
|
Object |
clone() |
NSDictionary<K,V> |
immutableClone() |
NSMutableDictionary<K,V> |
mutableClone() |
V |
put(K key,
V value)
Associate the value with key in this map.
|
void |
putAll(Map<? extends K,? extends V> m)
Copy all mappings from m to this map.
|
V |
remove(Object key)
Remove mapping for key from this map if it is present.
|
void |
removeAllObjects() |
V |
removeObjectForKey(Object key) |
void |
removeObjectsForKeys(NSArray<? extends K> keys) |
void |
setDictionary(NSDictionary<? extends K,? extends V> otherDictionary) |
void |
setObjectForKey(V object,
K key) |
void |
takeValueForKey(Object value,
String key) |
Collection<V> |
values()
Return a collection view of the values contained in this map.
|
_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, size, takeValueForKeyPath, toString, valueForKey, valueForKeyPathfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final Class _CLASS
public NSMutableDictionary()
public NSMutableDictionary(int capacity)
public NSMutableDictionary(NSArray<? extends V> objects, NSArray<? extends K> keys)
public NSMutableDictionary(NSDictionary<? extends K,? extends V> otherDictionary)
public NSMutableDictionary(Dictionary<? extends K,? extends V> dictionary, boolean ignoreNull)
public void removeAllObjects()
public void setDictionary(NSDictionary<? extends K,? extends V> otherDictionary)
public void addEntriesFromDictionary(NSDictionary<? extends K,? extends V> otherDictionary)
public void takeValueForKey(Object value, String key)
takeValueForKey in interface com.webobjects.foundation.NSKeyValueCodingtakeValueForKey in class NSDictionary<K,V>public Object clone()
clone in class NSDictionary<K,V>public NSDictionary<K,V> immutableClone()
immutableClone in class NSDictionary<K,V>public NSMutableDictionary<K,V> mutableClone()
mutableClone in class NSDictionary<K,V>public V put(K key, V value)
public void clear()
public Collection<V> values()
Copyright © 2002 – 2020 Project Wonder.