Interface XGettingMap<K,V>
- All Superinterfaces:
CapacityCarrying
,Copyable
,ExtendedCollection<KeyValue<K,V>>
,ExtendedMap<K,V>
,Iterable<KeyValue<K,V>>
,Sized
,XGettingCollection<KeyValue<K,V>>
,XGettingSet<KeyValue<K,V>>
,XIterable<KeyValue<K,V>>
,XJoinable<KeyValue<K,V>>
- All Known Subinterfaces:
XAddGetMap<K,V>
,XBasicTable<K,V>
,XChart<K,V>
,XGettingTable<K,V>
,XImmutableMap<K,V>
,XImmutableTable<K,V>
,XMap<K,V>
,XProcessingMap<K,V>
,XPutGetMap<K,V>
,XTable<K,V>
- All Known Implementing Classes:
ConstHashTable
,EmptyTable
,EqConstHashTable
,EqHashTable
,HashTable
,LockedGettingMap
,LockedMap
,MapView
,TableView
public interface XGettingMap<K,V> extends ExtendedMap<K,V>, XGettingSet<KeyValue<K,V>>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XGettingMap.Bridge<K,V>
static interface
XGettingMap.Creator<K,V>
static interface
XGettingMap.EntriesBridge<K,V>
static interface
XGettingMap.Keys<K,V>
static interface
XGettingMap.Satellite<K,V>
static interface
XGettingMap.Values<K,V>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Method Summary
Modifier and Type Method Description XGettingMap<K,V>
copy()
Creates a true copy of this collection which references the same elements as this collection does at the time the method is called.V
get(K key)
XImmutableMap<K,V>
immure()
Provides an instance of an immutable collection type with equal behavior and data as this instance.XGettingMap.Keys<K,V>
keys()
KeyValue<K,V>
lookup(K key)
boolean
nullKeyAllowed()
boolean
nullValuesAllowed()
XGettingMap.EntriesBridge<K,V>
old()
XGettingMap.Bridge<K,V>
oldMap()
<C extends Consumer<? super V>>
Cquery(XIterable<? extends K> keys, C collector)
V
searchValue(Predicate<? super K> keyPredicate)
XGettingMap.Values<K,V>
values()
XGettingMap<K,V>
view()
Creates a view of this collection and returns it.Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowed
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
-
Method Details
-
get
-
lookup
-
searchValue
-
query
-
keys
XGettingMap.Keys<K,V> keys() -
values
XGettingMap.Values<K,V> values() -
copy
XGettingMap<K,V> copy()Description copied from interface:XGettingCollection
Creates a true copy of this collection which references the same elements as this collection does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned set is the same as of this list if possible.- Specified by:
copy
in interfaceCopyable
- Specified by:
copy
in interfaceXGettingCollection<K>
- Specified by:
copy
in interfaceXGettingSet<K>
- Returns:
- a copy of this list
-
view
XGettingMap<K,V> view()Description copied from interface:XGettingCollection
Creates a view of this collection and returns it. It is a read-only collection, which wraps around this collection and only allows read methods.A view is different from immutable collection (
XGettingCollection.immure()
) in the way, that changes in this collection are still affecting the view. The immutable collection on the other hand has no reference to this collection and changes therefore do not affect the immutable collection.- Specified by:
view
in interfaceXGettingCollection<K>
- Returns:
- new read-only collection to view this collection
-
immure
XImmutableMap<K,V> immure()Provides an instance of an immutable collection type with equal behavior and data as this instance.If this instance already is of an immutable collection type, it returns itself.
- Specified by:
immure
in interfaceXGettingCollection<K>
- Specified by:
immure
in interfaceXGettingSet<K>
- Returns:
- an immutable copy of this collection instance.
-
old
XGettingMap.EntriesBridge<K,V> old()- Specified by:
old
in interfaceXGettingCollection<K>
-
oldMap
XGettingMap.Bridge<K,V> oldMap() -
nullKeyAllowed
boolean nullKeyAllowed() -
nullValuesAllowed
boolean nullValuesAllowed()
-