public interface XSettingList<E> extends XReplacingBag<E>, XSettingSequence<E>, XGettingList<E>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XSettingList.Creator<E> |
XReplacingBag.Factory<E>Copyable.StaticXIterable.Executor<E>XGettingList.Factory<E>| Modifier and Type | Method and Description |
|---|---|
XSettingList<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.
|
XSettingList<E> |
fill(long offset,
long length,
E element)
Fills all slots from the offset to the offset+length with the given element,
regardless of whether or not a slot is
null. |
XSettingList<E> |
range(long fromIndex,
long toIndex) |
XSettingList<E> |
reverse()
Reverses the order of its own elements and returns itself.
|
XSettingList<E> |
set(long index,
E[] elements,
int offset,
int length) |
XSettingList<E> |
set(long index,
XGettingSequence<? extends E> elements,
long offset,
long length) |
XSettingList<E> |
setAll(long index,
E... elements) |
XSettingSequence<E> |
sort(Comparator<? super E> comparator)
Sorts this collection according to the given comparator
and returns itself.
|
XSettingList<E> |
swap(long indexA,
long indexB) |
XSettingList<E> |
swap(long indexA,
long indexB,
long length) |
XSettingList<E> |
toReversed()
Creates a new
XGettingSequence with the reversed order of elements. |
replace, replace, replaceAll, replaceOne, replaceOne, substitutesubstituteset, setFirst, setGet, setLastshiftBy, shiftBy, shiftTo, shiftToat, copySelection, first, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan, viewapplies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, hashCode, intersect, intSize, max, min, nullContained, old, search, seek, size, toArray, toArray, unionforEach, spliteratorisFull, maximumCapacity, remainingCapacityiterateIndexednullAllowedimmure, listIterator, listIterator, old, view, viewXSettingList<E> fill(long offset, long length, E element)
null.offset - from the start of the collection (start index)length - of how many slots should be filledelement - to use for filling of slotsXSettingList<E> setAll(long index, E... elements)
setAll in interface XSettingSequence<E>XSettingList<E> set(long index, E[] elements, int offset, int length)
set in interface XSettingSequence<E>XSettingList<E> set(long index, XGettingSequence<? extends E> elements, long offset, long length)
set in interface XSettingSequence<E>XSettingList<E> swap(long indexA, long indexB)
swap in interface XOrderingSequence<E>swap in interface XSettingSequence<E>swap in interface XSortableSequence<E>XSettingList<E> swap(long indexA, long indexB, long length)
swap in interface XOrderingSequence<E>swap in interface XSettingSequence<E>swap in interface XSortableSequence<E>XSettingList<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 XOrderingSequence<E>reverse in interface XSettingSequence<E>reverse in interface XSortableSequence<E>XSettingSequence<E> sort(Comparator<? super E> comparator)
Sortablesort in interface Sortable<E>sort in interface XSettingSequence<E>sort in interface XSortableSequence<E>comparator - to sort this collectionXSettingList<E> copy()
XGettingCollectioncopy in interface Copyablecopy in interface XGettingBag<E>copy in interface XGettingCollection<E>copy in interface XGettingList<E>copy in interface XGettingSequence<E>copy in interface XReplacingBag<E>copy in interface XSettingSequence<E>copy in interface XSortableSequence<E>XSettingList<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 XGettingList<E>toReversed in interface XGettingSequence<E>toReversed in interface XSettingSequence<E>toReversed in interface XSortableSequence<E>XSettingList<E> range(long fromIndex, long toIndex)
range in interface XGettingList<E>range in interface XGettingSequence<E>range in interface XSettingSequence<E>Copyright © 2022 MicroStream Software. All rights reserved.