Interface XIncreasingSequence<E>
- All Superinterfaces:
CapacityCarrying,CapacityExtendable,Consumer<E>,Copyable,ExtendedCollection<E>,ExtendedSequence<E>,Iterable<E>,OptimizableCollection,Sized,Sortable<E>,SortableProcedure<E>,XAddingCollection<E>,XAddingSequence<E>,XExpandingSequence<E>,XExtendingSequence<E>,XGettingCollection<E>,XGettingSequence<E>,XIndexIterable<E>,XInputtingSequence<E>,XInsertingSequence<E>,XIterable<E>,XJoinable<E>,XOrderingSequence<E>,XPrependingSequence<E>,XPreputtingSequence<E>,XPuttingCollection<E>,XPuttingSequence<E>,XSortableSequence<E>
- All Known Subinterfaces:
XEnum<E>,XIncreasingEnum<E>,XIncreasingList<E>,XList<E>,XTable<K,V>,XTable.Keys<K,V>
- All Known Implementing Classes:
ArrayCollector,BulkList,EqBulkList,EqHashEnum,EqHashTable,EqHashTable.Keys,HashEnum,HashTable,HashTable.Keys,LimitList,LockedList,Single,SubList,SynchList
public interface XIncreasingSequence<E> extends XInputtingSequence<E>, XSortableSequence<E>, SortableProcedure<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXIncreasingSequence.Creator<E>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 XIncreasingSequence<E>addAll(E... elements)XIncreasingSequence<E>addAll(E[] elements, int offset, int length)XIncreasingSequence<E>addAll(XGettingCollection<? extends E> elements)XIncreasingSequence<E>copy()Creates a true copy of this list which references the same elements in the same order as this list does at the time the method is called.XIncreasingSequence<E>prependAll(E... elements)XIncreasingSequence<E>prependAll(E[] elements, int offset, int length)XIncreasingSequence<E>prependAll(XGettingCollection<? extends E> elements)XIncreasingSequence<E>preputAll(E... elements)XIncreasingSequence<E>preputAll(E[] elements, int offset, int length)XIncreasingSequence<E>preputAll(XGettingCollection<? extends E> elements)XIncreasingSequence<E>putAll(E... elements)Adds the specified elements to this collection if it is not already present (optional operation).XIncreasingSequence<E>putAll(E[] elements, int offset, int length)Adds the specified elements to this collection if it is not already present (optional operation).
Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.XIncreasingSequence<E>putAll(XGettingCollection<? extends E> elements)Adds the specified elements to this collection if it is not already present (optional operation).XIncreasingSequence<E>range(long fromIndex, long toIndex)XIncreasingSequence<E>reverse()Reverses the order of its own elements and returns itself.XIncreasingSequence<E>sort(Comparator<? super E> comparator)Sorts this collection according to the given comparator and returns itself.XIncreasingSequence<E>swap(long indexA, long indexB)XIncreasingSequence<E>swap(long indexA, long indexB, long length)XIncreasingSequence<E>toReversed()Creates a newXGettingSequencewith the reversed order of elements.Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacityMethods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityMethods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowedMethods inherited from interface one.microstream.collections.interfaces.OptimizableCollection
optimizeMethods inherited from interface one.microstream.collections.types.XAddingCollection
accept, add, collector, nullAddMethods 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, unionMethods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, immure, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan, view, viewMethods inherited from interface one.microstream.collections.types.XInputtingSequence
input, inputAll, inputAll, inputAll, nullInputMethods inherited from interface one.microstream.collections.types.XInsertingSequence
insert, insertAll, insertAll, insertAll, nullInsertMethods inherited from interface one.microstream.collections.types.XPrependingSequence
nullPrepend, prependMethods inherited from interface one.microstream.collections.types.XPreputtingSequence
nullPreput, preputMethods inherited from interface one.microstream.collections.types.XSortableSequence
shiftBy, shiftBy, shiftTo, shiftTo
-
Method Details
-
addAll
- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXExpandingSequence<E>- Specified by:
addAllin interfaceXExtendingSequence<E>- Specified by:
addAllin interfaceXInputtingSequence<E>- Specified by:
addAllin interfaceXInsertingSequence<E>
-
addAll
- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXExpandingSequence<E>- Specified by:
addAllin interfaceXExtendingSequence<E>- Specified by:
addAllin interfaceXInputtingSequence<E>- Specified by:
addAllin interfaceXInsertingSequence<E>
-
addAll
- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXExpandingSequence<E>- Specified by:
addAllin interfaceXExtendingSequence<E>- Specified by:
addAllin interfaceXInputtingSequence<E>- Specified by:
addAllin interfaceXInsertingSequence<E>
-
putAll
Description copied from interface:XPuttingCollectionAdds the specified elements to this collection if it is not already present (optional operation).- Specified by:
putAllin interfaceXExpandingSequence<E>- Specified by:
putAllin interfaceXInputtingSequence<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Parameters:
elements- to add- Returns:
- this
-
putAll
Description copied from interface:XPuttingCollectionAdds the specified elements to this collection if it is not already present (optional operation).
Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.- Specified by:
putAllin interfaceXExpandingSequence<E>- Specified by:
putAllin interfaceXInputtingSequence<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Parameters:
elements- to addoffset- start index of elements-array to add to collectionlength- length of elements-array to add to collection- Returns:
- this
-
putAll
Description copied from interface:XPuttingCollectionAdds the specified elements to this collection if it is not already present (optional operation).- Specified by:
putAllin interfaceXExpandingSequence<E>- Specified by:
putAllin interfaceXInputtingSequence<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Parameters:
elements- to add- Returns:
- this
-
prependAll
- Specified by:
prependAllin interfaceXExpandingSequence<E>- Specified by:
prependAllin interfaceXExtendingSequence<E>- Specified by:
prependAllin interfaceXInputtingSequence<E>- Specified by:
prependAllin interfaceXInsertingSequence<E>- Specified by:
prependAllin interfaceXPrependingSequence<E>- Specified by:
prependAllin interfaceXPreputtingSequence<E>
-
prependAll
- Specified by:
prependAllin interfaceXExpandingSequence<E>- Specified by:
prependAllin interfaceXExtendingSequence<E>- Specified by:
prependAllin interfaceXInputtingSequence<E>- Specified by:
prependAllin interfaceXInsertingSequence<E>- Specified by:
prependAllin interfaceXPrependingSequence<E>- Specified by:
prependAllin interfaceXPreputtingSequence<E>
-
prependAll
- Specified by:
prependAllin interfaceXExpandingSequence<E>- Specified by:
prependAllin interfaceXExtendingSequence<E>- Specified by:
prependAllin interfaceXInputtingSequence<E>- Specified by:
prependAllin interfaceXInsertingSequence<E>- Specified by:
prependAllin interfaceXPrependingSequence<E>- Specified by:
prependAllin interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAllin interfaceXExpandingSequence<E>- Specified by:
preputAllin interfaceXInputtingSequence<E>- Specified by:
preputAllin interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAllin interfaceXExpandingSequence<E>- Specified by:
preputAllin interfaceXInputtingSequence<E>- Specified by:
preputAllin interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAllin interfaceXExpandingSequence<E>- Specified by:
preputAllin interfaceXInputtingSequence<E>- Specified by:
preputAllin interfaceXPreputtingSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
copy
XIncreasingSequence<E> copy()Description copied from interface:XGettingSequenceCreates a true copy of this list which references the same elements in the same order as this list does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned list is the same as of this list if possible (i.e.: a SubList can not meaningful return a true copy that references its elements but still is a SubList)- Specified by:
copyin interfaceCopyable- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXGettingSequence<E>- Specified by:
copyin interfaceXSortableSequence<E>- Returns:
- a copy of this list
-
toReversed
XIncreasingSequence<E> toReversed()Description copied from interface:XSortableSequenceCreates a newXGettingSequencewith the reversed order of elements.This method creates a new collection and does not change the existing collection.
Unlike the
XSortableSequence.reverse()method, this method creates a new collection and does not change the existing collection.- Specified by:
toReversedin interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXSortableSequence<E>- Returns:
- New copy of the collection
-
reverse
XIncreasingSequence<E> reverse()Description copied from interface:XSortableSequenceReverses the order of its own elements and returns itself.Unlike the
XSortableSequence.toReversed()method, this method does not create a new collection, but changes the order of its own elements.- Specified by:
reversein interfaceXOrderingSequence<E>- Specified by:
reversein interfaceXSortableSequence<E>- Returns:
- this
-
range
- Specified by:
rangein interfaceXGettingSequence<E>
-
sort
Description copied from interface:SortableSorts this collection according to the given comparator and returns itself.
-