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 interfaceXImmutableMap.Bridge<K,V>static interfaceXImmutableMap.EntriesBridge<K,V>static interfaceXImmutableMap.Keys<K,V>static interfaceXImmutableMap.Satellite<K,V>static interfaceXImmutableMap.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.Vget(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()booleannullKeyAllowed()booleannullValuesAllowed()XImmutableMap.EntriesBridge<K,V>old()XImmutableMap.Bridge<K,V>oldMap()VsearchValue(Predicate<? super K> keyPredicate)XImmutableMap.Values<K,V>values()Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacityMethods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowedMethods 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:
getin interfaceXGettingMap<K,V>
-
searchValue
- Specified by:
searchValuein interfaceXGettingMap<K,V>
-
keys
XImmutableMap.Keys<K,V> keys()- Specified by:
keysin interfaceXGettingMap<K,V>
-
values
XImmutableMap.Values<K,V> values()- Specified by:
valuesin interfaceXGettingMap<K,V>
-
copy
XImmutableMap<K,V> copy()Description copied from interface:XGettingCollectionCreates 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:
copyin interfaceCopyable- Specified by:
copyin interfaceXGettingCollection<K>- Specified by:
copyin interfaceXGettingMap<K,V>- Specified by:
copyin interfaceXGettingSet<K>- Specified by:
copyin interfaceXImmutableCollection<K>- Specified by:
copyin 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:
immurein interfaceXGettingCollection<K>- Specified by:
immurein interfaceXGettingMap<K,V>- Specified by:
immurein interfaceXGettingSet<K>- Specified by:
immurein interfaceXImmutableCollection<K>- Specified by:
immurein interfaceXImmutableSet<K>- Returns:
- an immutable copy of this collection instance.
- See Also:
XImmutableCollection.copy()
-
old
XImmutableMap.EntriesBridge<K,V> old()- Specified by:
oldin interfaceXGettingCollection<K>- Specified by:
oldin interfaceXGettingMap<K,V>
-
oldMap
XImmutableMap.Bridge<K,V> oldMap()- Specified by:
oldMapin interfaceXGettingMap<K,V>
-
nullKeyAllowed
boolean nullKeyAllowed()- Specified by:
nullKeyAllowedin interfaceXGettingMap<K,V>
-
nullValuesAllowed
boolean nullValuesAllowed()- Specified by:
nullValuesAllowedin interfaceXGettingMap<K,V>
-