public interface BaseMap<K,V> extends UnmodMap<K,V>
UnmodMap
.
Lowest common ancestor of BaseUnsortedMap
, and ImSortedMap
.UnmodMap.UnEntry<K,V>
Modifier and Type | Method and Description |
---|---|
BaseMap<K,V> |
assoc(K key,
V val)
Returns a new map with the given key/value added
|
default BaseMap<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)
Returns an option of the key/value pair associated with this key
|
BaseSet<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) |
BaseSet<K> |
keySet()
Returns a view of the keys contained in this map.
|
BaseMap<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, dropWhile, filter, flatMap, fold, foldUntil, hash, 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 BaseMap<K,V> assoc(Map.Entry<K,V> entry)
BaseSet<Map.Entry<K,V>> entrySet()
default boolean containsKey(Object key)
containsKey
in interface Map<K,V>
Copyright © 2017. All rights reserved.