Interface XProcessingSequence<E>
- All Superinterfaces:
CapacityCarrying
,Clearable
,ConsolidatableCollection
,Copyable
,ExtendedCollection<E>
,ExtendedSequence<E>
,Iterable<E>
,OptimizableCollection
,Processable<E>
,ReleasingCollection<E>
,Sized
,Truncateable
,XGettingCollection<E>
,XGettingSequence<E>
,XIndexIterable<E>
,XIterable<E>
,XJoinable<E>
,XProcessingCollection<E>
,XRemovingCollection<E>
,XRemovingSequence<E>
- All Known Subinterfaces:
XBasicEnum<E>
,XBasicList<E>
,XBasicSequence<E>
,XBasicTable<K,V>
,XBasicTable.Keys<K,V>
,XBasicTable.Values<K,V>
,XChart<K,V>
,XChart.Keys<K,V>
,XChart.Values<K,V>
,XDecreasingEnum<E>
,XDecreasingList<E>
,XDecreasingSequence<E>
,XEnum<E>
,XLadder<E>
,XList<E>
,XProcessingEnum<E>
,XProcessingList<E>
,XProcessingSortation<E>
,XRank<E>
,XSequence<E>
,XSortation<E>
,XTable<K,V>
,XTable.Keys<K,V>
,XTable.Values<K,V>
- All Known Implementing Classes:
ArrayCollector
,BulkList
,EnumProcessor
,EqBulkList
,EqHashEnum
,EqHashTable
,EqHashTable.Keys
,EqHashTable.Values
,HashEnum
,HashTable
,HashTable.Keys
,HashTable.Values
,LimitList
,ListProcessor
,LockedList
,Single
,SubList
,SubListProcessor
,SubProcessor
,SynchList
public interface XProcessingSequence<E> extends XRemovingSequence<E>, XGettingSequence<E>, XProcessingCollection<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XProcessingSequence.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 <C extends Consumer<? super E>>
CmoveSelection(C target, long... indices)
E
pick()
Remove and retrieve last or null if empty (like easy extraction from collection's end).E
pop()
Remove and retrieve last or throw IndexOutOfBoundsException if empty (stack conceptional pop).E
removeAt(long index)
Remove and retrieve element at index or throw IndexOutOfBoundsException if invalid.XProcessingSequence<E>
toReversed()
Creates a newXGettingSequence
with the reversed order of elements.XGettingSequence<E>
view(long fromIndex, long toIndex)
Creates a sub-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, old, search, seek, size, toArray, toArray, union
Methods inherited from interface one.microstream.collections.types.XGettingSequence
at, copy, copySelection, first, get, hasIndex, immure, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, range, scan, view
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
Methods inherited from interface one.microstream.collections.types.XRemovingSequence
removeRange, removeSelection, retainRange
-
Method Details
-
removeAt
Remove and retrieve element at index or throw IndexOutOfBoundsException if invalid.- Parameters:
index
- index of item to be retrieved.- Returns:
- Item at index or IndexOutOfBoundsException if invalid.
-
pop
E pop()Remove and retrieve last or throw IndexOutOfBoundsException if empty (stack conceptional pop).- Returns:
- Last item or IndexOutOfBoundsException if empty.
-
pick
E pick()Remove and retrieve last or null if empty (like easy extraction from collection's end).- Returns:
- Last item or null if empty.
-
toReversed
XProcessingSequence<E> toReversed()Description copied from interface:XGettingSequence
Creates a newXGettingSequence
with the reversed order of elements.This method creates a new collection and does not change the existing collection.
- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Returns:
- New copy of the collection
-
moveSelection
-
view
Description copied from interface:XGettingSequence
Creates a sub-view of this collection and returns it. It is a read-only collection, which wraps around this collection and only allows read methods.
The view is limited to a range from the lowIndex to the highIndex.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 interfaceXGettingSequence<E>
- Parameters:
fromIndex
- defines lower boundary for the view of the collection.toIndex
- defines higher boundary for the view of the collection.- Returns:
- new read-only collection to view a range of elements in this collection
-