public interface ImMap<K,V> extends UnmodMap<K,V>
UnmodMap.AbstractUnmodMap<K,V>, UnmodMap.UnEntry<K,V>
UnmodIterable.AbstractUnmodIterable<T>
Modifier and Type | Method and Description |
---|---|
ImMap<K,V> |
assoc(K key,
V val)
Returns a new map with the given key/value added
|
default ImMap<K,V> |
assoc(Map.Entry<K,V> entry)
Returns a new map with an immutable copy of the given entry added
|
default boolean |
containsKey(Object key) |
Option<UnmodMap.UnEntry<K,V>> |
entry(K key) |
default ImSet<Map.Entry<K,V>> |
entrySet()
Returns a view of the mappings contained in this map.
|
default V |
get(Object key) |
default V |
getOrElse(K key,
V notFound) |
ImSet<K> |
keySet()
Returns a view of the keys contained in this map.
|
ImMap<K,V> |
without(K key)
Returns a new map with the given key/value removed
|
clear, compute, computeIfAbsent, computeIfPresent, containsValue, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, values
concat, drop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, iterator, map, precat, take, takeWhile, toString
forEach, spliterator
toImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSet
Option<UnmodMap.UnEntry<K,V>> entry(K key)
default ImMap<K,V> assoc(Map.Entry<K,V> entry)
default ImSet<Map.Entry<K,V>> entrySet()
default boolean containsKey(Object key)
containsKey
in interface Map<K,V>
Copyright © 2017. All rights reserved.