Interface XProcessingBag<E>
- All Superinterfaces:
CapacityCarrying
,Clearable
,ConsolidatableCollection
,Copyable
,ExtendedBag<E>
,ExtendedCollection<E>
,Iterable<E>
,OptimizableCollection
,Processable<E>
,ReleasingCollection<E>
,Sized
,Truncateable
,XGettingBag<E>
,XGettingCollection<E>
,XIterable<E>
,XJoinable<E>
,XProcessingCollection<E>
,XRemovingBag<E>
,XRemovingCollection<E>
- All Known Subinterfaces:
XBag<E>
,XBasicList<E>
,XBasicTable.Values<K,V>
,XChart.Values<K,V>
,XDecreasingList<E>
,XLadder<E>
,XList<E>
,XMap.Values<K,V>
,XProcessingList<E>
,XProcessingMap.Values<K,V>
,XTable.Values<K,V>
- All Known Implementing Classes:
ArrayCollector
,BulkList
,EqBulkList
,EqHashTable.Values
,HashTable.Values
,LimitList
,ListProcessor
,LockedList
,Single
,SubList
,SubListProcessor
,SynchList
public interface XProcessingBag<E> extends XRemovingBag<E>, XGettingBag<E>, XProcessingCollection<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XProcessingBag.Factory<E>
Nested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollection
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingCollection
XGettingCollection.Creator<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Method Summary
Modifier and Type Method Description XProcessingBag<E>
copy()
Creates a true copy of this collection which references the same elements as this collection does at the time the method is called.XImmutableBag<E>
immure()
Provides an instance of an immutable collection type with equal behavior and data as this instance.XGettingBag<E>
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, old, search, seek, size, toArray, toArray, union
Methods inherited from interface one.microstream.collections.types.XProcessingCollection
fetch, iterate, moveTo, pinch, removeBy, removeDuplicates, retrieve, retrieveBy
Methods inherited from interface one.microstream.collections.types.XRemovingCollection
clear, consolidate, nullRemove, optimize, remove, removeAll, removeDuplicates, removeOne, retainAll, truncate
-
Method Details
-
copy
XProcessingBag<E> 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 interfaceXGettingBag<E>
- Specified by:
copy
in interfaceXGettingCollection<E>
- Returns:
- a copy of this list
-
view
XGettingBag<E> 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 interfaceXGettingBag<E>
- Specified by:
view
in interfaceXGettingCollection<E>
- Returns:
- new read-only collection to view this collection
-
immure
XImmutableBag<E> 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 interfaceXGettingBag<E>
- Specified by:
immure
in interfaceXGettingCollection<E>
- Returns:
- an immutable copy of this collection instance.
-