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
|
equals
hashCode, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assoc, entrySet, keySet
containsKey, get, getOrElse
clear, compute, computeIfAbsent, computeIfPresent, containsValue, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, values
equals, forEach, getOrDefault, hashCode
concat, drop, dropWhile, filter, flatMap, fold, foldUntil, hash, head, map, precat, take, takeWhile, toString
forEach, spliterator
toImList, toImMap, toImRrbt, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableRrbt, toMutableSet, toMutableSortedMap, toMutableSortedSet
public Equator<K> equator()
BaseUnsortedMap
equator
in interface BaseUnsortedMap<K,V>
public PersistentHashMap.MutableHashMap<K,V> assoc(K key, V val)
MutableMap
public Option<UnmodMap.UnEntry<K,V>> entry(K key)
BaseMap
public UnmodIterator<UnmodMap.UnEntry<K,V>> iterator()
UnmodIterable
iterator
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)
MutableMap
public final PersistentHashMap<K,V> immutable()
MutableMap
immutable
in interface MutableMap<K,V>
Copyright © 2018. All rights reserved.