Interface XImmutableMap<K,V>
- All Superinterfaces:
CapacityCarrying
,Copyable
,ExtendedCollection<KeyValue<K,V>>
,ExtendedMap<K,V>
,HashImmutable
,Immutable
,Iterable<KeyValue<K,V>>
,Sized
,ThreadSafe
,XGettingCollection<KeyValue<K,V>>
,XGettingMap<K,V>
,XGettingSet<KeyValue<K,V>>
,XImmutableCollection<KeyValue<K,V>>
,XImmutableSet<KeyValue<K,V>>
,XIterable<KeyValue<K,V>>
,XJoinable<KeyValue<K,V>>
- All Known Subinterfaces:
XImmutableTable<K,V>
- All Known Implementing Classes:
ConstHashTable
,EmptyTable
,EqConstHashTable
public interface XImmutableMap<K,V> extends XGettingMap<K,V>, XImmutableSet<KeyValue<K,V>>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XImmutableMap.Bridge<K,V>
static interface
XImmutableMap.EntriesBridge<K,V>
static interface
XImmutableMap.Keys<K,V>
static interface
XImmutableMap.Satellite<K,V>
static interface
XImmutableMap.Values<K,V>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingCollection
XGettingCollection.Creator<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingMap
XGettingMap.Creator<K,V>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSet
XGettingSet.Creator<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XImmutableSet
XImmutableSet.Factory<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Method Summary
Modifier and Type Method Description XImmutableMap<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)
XImmutableTable<K,V>
immure()
Provides an instance of an immutable collection type with equal behavior and data as this instance.XImmutableMap.Keys<K,V>
keys()
boolean
nullKeyAllowed()
boolean
nullValuesAllowed()
XImmutableMap.EntriesBridge<K,V>
old()
XImmutableMap.Bridge<K,V>
oldMap()
V
searchValue(Predicate<? super K> keyPredicate)
XImmutableMap.Values<K,V>
values()
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
- Specified by:
get
in interfaceXGettingMap<K,V>
-
searchValue
- Specified by:
searchValue
in interfaceXGettingMap<K,V>
-
keys
XImmutableMap.Keys<K,V> keys()- Specified by:
keys
in interfaceXGettingMap<K,V>
-
values
XImmutableMap.Values<K,V> values()- Specified by:
values
in interfaceXGettingMap<K,V>
-
copy
XImmutableMap<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 interfaceXGettingMap<K,V>
- Specified by:
copy
in interfaceXGettingSet<K>
- Specified by:
copy
in interfaceXImmutableCollection<K>
- Specified by:
copy
in interfaceXImmutableSet<K>
- Returns:
- a copy of this list
-
immure
XImmutableTable<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 interfaceXGettingMap<K,V>
- Specified by:
immure
in interfaceXGettingSet<K>
- Specified by:
immure
in interfaceXImmutableCollection<K>
- Specified by:
immure
in interfaceXImmutableSet<K>
- Returns:
- an immutable copy of this collection instance.
- See Also:
XImmutableCollection.copy()
-
old
XImmutableMap.EntriesBridge<K,V> old()- Specified by:
old
in interfaceXGettingCollection<K>
- Specified by:
old
in interfaceXGettingMap<K,V>
-
oldMap
XImmutableMap.Bridge<K,V> oldMap()- Specified by:
oldMap
in interfaceXGettingMap<K,V>
-
nullKeyAllowed
boolean nullKeyAllowed()- Specified by:
nullKeyAllowed
in interfaceXGettingMap<K,V>
-
nullValuesAllowed
boolean nullValuesAllowed()- Specified by:
nullValuesAllowed
in interfaceXGettingMap<K,V>
-