public interface XOrderingSequence<E> extends ExtendedSequence<E>
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>| Modifier and Type | Method and Description |
|---|---|
XOrderingSequence<E> |
reverse()
Reverses the order of its own elements and returns itself.
|
XOrderingSequence<E> |
shiftBy(long sourceIndex,
long distance)
Moves the element from the sourceIndex in the sequence to a higher index position.
All other elements are possibly moved to create the empty slot for the shifting element. |
XOrderingSequence<E> |
shiftBy(long sourceIndex,
long distance,
long length)
Moves multiple elements from the sourceIndex in the sequence to a higher index position.
All other elements are possibly moved to create the empty slot for the shifting elements. |
XOrderingSequence<E> |
shiftTo(long sourceIndex,
long targetIndex)
Moves the element from the sourceIndex in the sequence to the targetIndex.
All other elements are possibly moved to create the empty slot for the shifting element. |
XOrderingSequence<E> |
shiftTo(long sourceIndex,
long targetIndex,
long length)
Moves multiple elements from the sourceIndex in the sequence to the targetIndex.
All other elements are possibly moved to create the empty slot for the shifting element. |
XOrderingSequence<E> |
swap(long indexA,
long indexB) |
XOrderingSequence<E> |
swap(long indexA,
long indexB,
long length) |
hasVolatileElements, nullAllowedXOrderingSequence<E> shiftTo(long sourceIndex, long targetIndex)
Does not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex are
greater than the size of the sequence.
sourceIndex - points to the source element; Index of the source elementtargetIndex - points to the target element; Index of the target elementXOrderingSequence<E> shiftTo(long sourceIndex, long targetIndex, long length)
Does not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
exceed the size of the sequence.
sourceIndex - points to the source element; Index of the source elementtargetIndex - points to the target element; Index of the target elementlength - Amount of moved elements.XOrderingSequence<E> shiftBy(long sourceIndex, long distance)
Does not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
(sourceIndex+distance) exceed the size of the sequence.
sourceIndex - points to the source element; Index of the source elementdistance - of how far the element should be moved.
Example: 1 moves the element from position 21 to position 22XOrderingSequence<E> shiftBy(long sourceIndex, long distance, long length)
Does not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
(sourceIndex+distance+length) exceed the size of the sequence.
sourceIndex - points to the source element; Index of the source elementdistance - of how far the element should be moved.
Example: 1 moves the element from position 21 to position 22length - Amount of moved elements.XOrderingSequence<E> swap(long indexA, long indexB)
XOrderingSequence<E> swap(long indexA, long indexB, long length)
XOrderingSequence<E> reverse()
Copyright © 2022 MicroStream Software. All rights reserved.