Interface XGettingTable<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Superinterfaces:
CapacityCarrying
,Copyable
,ExtendedCollection<KeyValue<K,V>>
,ExtendedMap<K,V>
,ExtendedSequence<KeyValue<K,V>>
,Iterable<KeyValue<K,V>>
,Sized
,XGettingCollection<KeyValue<K,V>>
,XGettingEnum<KeyValue<K,V>>
,XGettingMap<K,V>
,XGettingSequence<KeyValue<K,V>>
,XGettingSet<KeyValue<K,V>>
,XIndexIterable<KeyValue<K,V>>
,XIterable<KeyValue<K,V>>
,XJoinable<KeyValue<K,V>>
- All Known Subinterfaces:
XBasicTable<K,V>
,XChart<K,V>
,XImmutableTable<K,V>
,XTable<K,V>
- All Known Implementing Classes:
ConstHashTable
,EmptyTable
,EqConstHashTable
,EqHashTable
,HashTable
,TableView
public interface XGettingTable<K,V> extends XGettingMap<K,V>, XGettingEnum<KeyValue<K,V>>
Map plus order
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XGettingTable.Bridge<K,V>
static interface
XGettingTable.EntriesBridge<K,V>
static interface
XGettingTable.Keys<K,V>
static interface
XGettingTable.Satellite<K,V>
static interface
XGettingTable.Values<K,V>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingEnum
XGettingEnum.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.XGettingSequence
XGettingSequence.Factory<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Method Summary
Modifier and Type Method Description XGettingTable<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.XImmutableTable<K,V>
immure()
Provides an instance of an immutable collection type with equal behavior and data as this instance.XGettingTable.Keys<K,V>
keys()
XGettingTable.EntriesBridge<K,V>
old()
XGettingTable.Bridge<K,V>
oldMap()
XGettingTable.Values<K,V>
values()
XGettingTable<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, hashCode, hasVolatileElements, intersect, intSize, iterator, join, max, min, nullContained, search, seek, size, toArray, toArray, union
Methods inherited from interface one.microstream.collections.types.XGettingEnum
iterate, range, toReversed, view
Methods inherited from interface one.microstream.collections.types.XGettingMap
get, lookup, nullKeyAllowed, nullValuesAllowed, query, searchValue
Methods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan
-
Method Details
-
keys
XGettingTable.Keys<K,V> keys()- Specified by:
keys
in interfaceXGettingMap<K,V>
-
values
XGettingTable.Values<K,V> values()- Specified by:
values
in interfaceXGettingMap<K,V>
-
view
XGettingTable<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>
- Specified by:
view
in interfaceXGettingEnum<K>
- Specified by:
view
in interfaceXGettingMap<K,V>
- Specified by:
view
in interfaceXGettingSequence<K>
- Returns:
- new read-only collection to view this collection
-
immure
XImmutableTable<K,V> immure()Description copied from interface:XGettingMap
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 interfaceXGettingEnum<K>
- Specified by:
immure
in interfaceXGettingMap<K,V>
- Specified by:
immure
in interfaceXGettingSequence<K>
- Specified by:
immure
in interfaceXGettingSet<K>
- Returns:
- an immutable copy of this collection instance.
-
old
XGettingTable.EntriesBridge<K,V> old()- Specified by:
old
in interfaceXGettingCollection<K>
- Specified by:
old
in interfaceXGettingMap<K,V>
-
oldMap
XGettingTable.Bridge<K,V> oldMap()- Specified by:
oldMap
in interfaceXGettingMap<K,V>
-
copy
XGettingTable<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 interfaceXGettingEnum<K>
- Specified by:
copy
in interfaceXGettingMap<K,V>
- Specified by:
copy
in interfaceXGettingSequence<K>
- Specified by:
copy
in interfaceXGettingSet<K>
- Returns:
- a copy of this list
-