- Type Parameters:
K
- the key type
V
- the value type
- All Superinterfaces:
CapacityCarrying
, CapacityExtendable
, Copyable
, ExtendedCollection<KeyValue<K,V>>
, ExtendedMap<K,V>
, Iterable<KeyValue<K,V>>
, Sized
, XAddGetMap<K,V>
, XAddingMap<K,V>
, XGettingCollection<KeyValue<K,V>>
, XGettingMap<K,V>
, XGettingSet<KeyValue<K,V>>
, XIterable<KeyValue<K,V>>
, XJoinable<KeyValue<K,V>>
, XPuttingMap<K,V>
- All Known Subinterfaces:
XBasicTable<K,V>
, XChart<K,V>
, XMap<K,V>
, XTable<K,V>
- All Known Implementing Classes:
EqHashTable
, HashTable
, LockedMap
public interface XPutGetMap<K,V>
extends XPuttingMap<K,V>, XAddGetMap<K,V>
-
-
Method Summary
Modifier and Type |
Method |
Description |
KeyValue<K,V> |
putGet(K key,
V value) |
Ensures the passed key and value to be contained as an entry in the map.
|
KeyValue<K,V> |
replace(K key,
V value) |
|
Methods inherited from interface one.microstream.collections.interfaces.Sized
isEmpty
Methods inherited from interface one.microstream.collections.types.XGettingCollection
applies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, get, hashCode, hasVolatileElements, intersect, intSize, iterator, join, max, min, nullContained, search, seek, size, toArray, toArray, union
Methods inherited from interface one.microstream.collections.types.XGettingMap
copy, get, immure, keys, lookup, nullKeyAllowed, nullValuesAllowed, old, oldMap, query, searchValue, values, view
-
Method Details
-
Ensures the passed key and value to be contained as an entry in the map. Returns the old value or null
.
- Parameters:
key
- the key
value
- the value
- Returns:
- the old value or
null
.
-