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>
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 Class |
_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 |
---|
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, 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 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 NSKeyValueCoding
takeValueForKey
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 – 2024 Project Wonder.