public static final class PersistentHashMap.MutableHashMap<K,V> extends AbstractUnmodMap<K,V> implements MutableMap<K,V>
UnmodMap.UnEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
PersistentHashMap.MutableHashMap<K,V> |
assoc(K key,
V val)
Returns a new map with the given key/value added
|
Option<UnmodMap.UnEntry<K,V>> |
entry(K key)
Returns an option of the key/value pair associated with this key
|
Equator<K> |
equator()
Returns the Equator used by this map for equals comparisons and hashCodes
|
PersistentHashMap<K,V> |
immutable()
Returns an immutable version of this mutable map.
|
UnmodIterator<UnmodMap.UnEntry<K,V>> |
iterator()
A one-time use, mutable, not-thread-safe way to get each value of the underling collection in
turn.
|
UnmodIterator<K> |
keyIterator() |
int |
size()
Returns the number of items in this collection or iterable.
|
UnmodIterator<V> |
valIterator() |
PersistentHashMap.MutableHashMap<K,V> |
without(K key)
Returns a new map with the given key/value removed
|
equalshashCode, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassoc, entrySet, keySetcontainsKey, get, getOrElseclear, compute, computeIfAbsent, computeIfPresent, containsValue, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, valuesequals, forEach, getOrDefault, hashCodeconcat, drop, dropWhile, filter, flatMap, fold, foldUntil, hash, head, map, precat, take, takeWhile, toStringforEach, spliteratortoImList, toImMap, toImRrbt, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableRrbt, toMutableSet, toMutableSortedMap, toMutableSortedSetpublic Equator<K> equator()
BaseUnsortedMapequator in interface BaseUnsortedMap<K,V>public PersistentHashMap.MutableHashMap<K,V> assoc(K key, V val)
MutableMappublic Option<UnmodMap.UnEntry<K,V>> entry(K key)
BaseMappublic UnmodIterator<UnmodMap.UnEntry<K,V>> iterator()
UnmodIterableiterator in interface Iterable<UnmodMap.UnEntry<K,V>>iterator in interface UnmodIterable<UnmodMap.UnEntry<K,V>>public UnmodIterator<K> keyIterator()
keyIterator in interface UnmodMap<K,V>public UnmodIterator<V> valIterator()
valIterator in interface UnmodMap<K,V>public final PersistentHashMap.MutableHashMap<K,V> without(K key)
MutableMappublic final PersistentHashMap<K,V> immutable()
MutableMapimmutable in interface MutableMap<K,V>Copyright © 2019. All rights reserved.