public interface XSortableEnum<E> extends XSortableSequence<E>, XGettingEnum<E>, XOrderingEnum<E>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XSortableEnum.Creator<E> |
XGettingSequence.Factory<E>Copyable.StaticXIterable.Executor<E>| Modifier and Type | Method and Description |
|---|---|
XSortableEnum<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.
|
XSortableEnum<E> |
reverse()
Reverses the order of its own elements and returns itself.
|
XSortableEnum<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. |
XSortableEnum<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. |
XSortableEnum<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. |
XSortableEnum<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. |
XSortableEnum<E> |
sort(Comparator<? super E> comparator)
Sorts this collection according to the given comparator
and returns itself.
|
XSortableEnum<E> |
swap(long indexA,
long indexB) |
XSortableEnum<E> |
swap(long indexA,
long indexB,
long length) |
XSortableEnum<E> |
toReversed()
Creates a new
XGettingSequence with the reversed order of elements. |
immure, iterate, range, view, viewat, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scanapplies, 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, unionforEach, spliteratorisFull, maximumCapacity, remainingCapacityiterateIndexednullAllowedXSortableEnum<E> shiftTo(long sourceIndex, long targetIndex)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex are
greater than the size of the sequence.
shiftTo in interface XOrderingEnum<E>shiftTo in interface XOrderingSequence<E>shiftTo in interface XSortableSequence<E>sourceIndex - points to the source element; Index of the source elementtargetIndex - points to the target element; Index of the target elementXSortableEnum<E> shiftTo(long sourceIndex, long targetIndex, long length)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
exceed the size of the sequence.
shiftTo in interface XOrderingEnum<E>shiftTo in interface XOrderingSequence<E>shiftTo in interface XSortableSequence<E>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.XSortableEnum<E> shiftBy(long sourceIndex, long distance)
XOrderingSequenceDoes not expand or shrink the capacity of the sequence.
Throws a IndexExceededException if sourceIndex or targetIndex
(sourceIndex+distance) exceed the size of the sequence.
shiftBy in interface XOrderingEnum<E>shiftBy in interface XOrderingSequence<E>shiftBy in interface XSortableSequence<E>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 22XSortableEnum<E> shiftBy(long sourceIndex, long distance, long length)
XOrderingSequenceDoes 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.
shiftBy in interface XOrderingEnum<E>shiftBy in interface XOrderingSequence<E>shiftBy in interface XSortableSequence<E>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.XSortableEnum<E> swap(long indexA, long indexB)
swap in interface XOrderingEnum<E>swap in interface XOrderingSequence<E>swap in interface XSortableSequence<E>XSortableEnum<E> swap(long indexA, long indexB, long length)
swap in interface XOrderingEnum<E>swap in interface XOrderingSequence<E>swap in interface XSortableSequence<E>XSortableEnum<E> reverse()
XSortableSequence
Unlike the XSortableSequence.toReversed() method, this method does not create a new collection,
but changes the order of its own elements.
reverse in interface XOrderingEnum<E>reverse in interface XOrderingSequence<E>reverse in interface XSortableSequence<E>XSortableEnum<E> copy()
XGettingSequencecopy in interface Copyablecopy in interface XGettingCollection<E>copy in interface XGettingEnum<E>copy in interface XGettingSequence<E>copy in interface XGettingSet<E>copy in interface XSortableSequence<E>XSortableEnum<E> toReversed()
XSortableSequenceXGettingSequence with 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.
toReversed in interface XGettingEnum<E>toReversed in interface XGettingSequence<E>toReversed in interface XSortableSequence<E>XSortableEnum<E> sort(Comparator<? super E> comparator)
SortableCopyright © 2022 MicroStream Software. All rights reserved.