public static final class PersistentHashMap.MutableHashMap<K,V> extends UnmodMap.AbstractUnmodMap<K,V> implements MutableUnsortedMap<K,V>
UnmodMap.AbstractUnmodMap<K,V>, UnmodMap.UnEntry<K,V>
UnmodIterable.AbstractUnmodIterable<T>
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) |
Equator<K> |
equator()
Returns the Equator used by this map for equals comparisons and hashCodes
|
PersistentHashMap<K,V> |
immutable()
Returns a immutable version of this (maybe) 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.
|
int |
size()
Returns the number of items in this iterable.
|
PersistentHashMap.MutableHashMap<K,V> |
without(K key)
Returns a new map with the given key/value removed
|
equals
hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
assoc, mutable
keySet
containsKey, entrySet, get, getOrElse
clear, compute, computeIfAbsent, computeIfPresent, containsValue, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, values
equals, forEach, getOrDefault, hashCode
concat, drop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, map, precat, take, takeWhile, toString
forEach, spliterator
toImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSet
public Equator<K> equator()
ImUnsortedMap
equator
in interface ImUnsortedMap<K,V>
public PersistentHashMap.MutableHashMap<K,V> assoc(K key, V val)
MutableUnsortedMap
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 final PersistentHashMap.MutableHashMap<K,V> without(K key)
MutableUnsortedMap
public final PersistentHashMap<K,V> immutable()
ImUnsortedMap
immutable
in interface ImUnsortedMap<K,V>
Copyright © 2016. All rights reserved.