E - type of contained elementspublic interface XList<E> extends XBasicList<E>, XIncreasingList<E>, XDecreasingList<E>, XSequence<E>
XList implementations have to have RandomAccess behavior.| Modifier and Type | Interface and Description |
|---|---|
static interface |
XList.Creator<E> |
XBag.Factory<E>XPutGetList.Factory<E>XInputtingList.Factory<E>XProcessingList.Factory<E>XBasicSequence.Factory<E>| Modifier and Type | Method and Description |
|---|---|
XList<E> |
addAll(E... elements) |
XList<E> |
addAll(E[] elements,
int offset,
int length) |
XList<E> |
addAll(XGettingCollection<? extends E> elements) |
default Aggregator<E,? extends XList<E>> |
collector() |
XList<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.
|
XList<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. |
<P extends Consumer<? super E>> |
iterate(P procedure)
Executes the given procedure for each element of the
XIterable
until all elements have been processed or the action throws an
exception. |
XList<E> |
prependAll(E... elements) |
XList<E> |
prependAll(E[] elements,
int offset,
int length) |
XList<E> |
prependAll(XGettingCollection<? extends E> elements) |
XList<E> |
preputAll(E... elements) |
XList<E> |
preputAll(E[] elements,
int offset,
int length) |
XList<E> |
preputAll(XGettingCollection<? extends E> elements) |
XList<E> |
putAll(E... elements)
Adds the specified elements to this collection if it is not already present (optional operation).
|
XList<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. |
XList<E> |
putAll(XGettingCollection<? extends E> elements)
Adds the specified elements to this collection if it is not already present (optional operation).
|
XList<E> |
range(long fromIndex,
long toIndex) |
XList<E> |
retainRange(long offset,
long length)
Removing all elements but the ones from the offset (basically start index)
to the offset+length (end index).
|
XList<E> |
reverse()
Reverses the order of its own elements and returns itself.
|
XList<E> |
set(long index,
E[] elements,
int offset,
int length) |
XList<E> |
set(long index,
XGettingSequence<? extends E> elements,
long offset,
long length) |
XList<E> |
setAll(long index,
E... elements) |
XList<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. |
XList<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. |
XList<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. |
XList<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. |
XList<E> |
sort(Comparator<? super E> comparator)
Sorts this collection according to the given comparator
and returns itself.
|
XList<E> |
swap(long indexA,
long indexB) |
XList<E> |
swap(long indexA,
long indexB,
long length) |
XList<E> |
toReversed()
Creates a new
XBasicList with the reversed order of elements. |
input, inputAll, inputAll, inputAll, nullInputinsert, insertAll, insertAll, insertAll, nullInsertnullPut, putaccept, add, nullAddcurrentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityisFull, maximumCapacity, remainingCapacitynullPreput, preputnullPrepend, prependnullAllowedsortIfApplicableimmure, viewreplace, replace, replaceAll, replaceOne, replaceOne, substitutesubstituteimmure, listIterator, listIterator, old, view, viewset, setFirst, setGet, setLastmoveSelection, pick, pop, removeAt, viewremoveRange, removeSelectionfetch, moveTo, pinch, removeBy, removeDuplicates, retrieve, retrieveByprocessclear, consolidate, nullRemove, optimize, remove, removeAll, removeDuplicates, removeOne, retainAll, truncatedefault Aggregator<E,? extends XList<E>> collector()
collector in interface XAddingCollection<E>collector in interface XCollection<E>XList<E> addAll(E... elements)
addAll in interface XAddGetCollection<E>addAll in interface XAddingBag<E>addAll in interface XAddingCollection<E>addAll in interface XAddingList<E>addAll in interface XAddingSequence<E>addAll in interface XBag<E>addAll in interface XBasicList<E>addAll in interface XBasicSequence<E>addAll in interface XCollection<E>addAll in interface XExpandingList<E>addAll in interface XExpandingSequence<E>addAll in interface XExtendingList<E>addAll in interface XExtendingSequence<E>addAll in interface XIncreasingList<E>addAll in interface XIncreasingSequence<E>addAll in interface XInputtingList<E>addAll in interface XInputtingSequence<E>addAll in interface XInsertingSequence<E>addAll in interface XPutGetCollection<E>addAll in interface XPutGetList<E>addAll in interface XPutGetSequence<E>addAll in interface XPuttingBag<E>addAll in interface XPuttingList<E>addAll in interface XSequence<E>XList<E> addAll(E[] elements, int offset, int length)
addAll in interface XAddGetCollection<E>addAll in interface XAddingBag<E>addAll in interface XAddingCollection<E>addAll in interface XAddingList<E>addAll in interface XAddingSequence<E>addAll in interface XBag<E>addAll in interface XBasicList<E>addAll in interface XBasicSequence<E>addAll in interface XCollection<E>addAll in interface XExpandingList<E>addAll in interface XExpandingSequence<E>addAll in interface XExtendingList<E>addAll in interface XExtendingSequence<E>addAll in interface XIncreasingList<E>addAll in interface XIncreasingSequence<E>addAll in interface XInputtingList<E>addAll in interface XInputtingSequence<E>addAll in interface XInsertingSequence<E>addAll in interface XPutGetCollection<E>addAll in interface XPutGetList<E>addAll in interface XPutGetSequence<E>addAll in interface XPuttingBag<E>addAll in interface XPuttingList<E>addAll in interface XSequence<E>XList<E> addAll(XGettingCollection<? extends E> elements)
addAll in interface XAddGetCollection<E>addAll in interface XAddingBag<E>addAll in interface XAddingCollection<E>addAll in interface XAddingList<E>addAll in interface XAddingSequence<E>addAll in interface XBag<E>addAll in interface XBasicList<E>addAll in interface XBasicSequence<E>addAll in interface XCollection<E>addAll in interface XExpandingList<E>addAll in interface XExpandingSequence<E>addAll in interface XExtendingList<E>addAll in interface XExtendingSequence<E>addAll in interface XIncreasingList<E>addAll in interface XIncreasingSequence<E>addAll in interface XInputtingList<E>addAll in interface XInputtingSequence<E>addAll in interface XInsertingSequence<E>addAll in interface XPutGetCollection<E>addAll in interface XPutGetList<E>addAll in interface XPutGetSequence<E>addAll in interface XPuttingBag<E>addAll in interface XPuttingList<E>addAll in interface XSequence<E>XList<E> putAll(E... elements)
XPuttingBag
In this implementation it is identical to XPuttingBag.addAll(Object...)
putAll in interface XBag<E>putAll in interface XBasicList<E>putAll in interface XBasicSequence<E>putAll in interface XCollection<E>putAll in interface XExpandingList<E>putAll in interface XExpandingSequence<E>putAll in interface XIncreasingList<E>putAll in interface XIncreasingSequence<E>putAll in interface XInputtingList<E>putAll in interface XInputtingSequence<E>putAll in interface XPutGetCollection<E>putAll in interface XPutGetList<E>putAll in interface XPutGetSequence<E>putAll in interface XPuttingBag<E>putAll in interface XPuttingCollection<E>putAll in interface XPuttingList<E>putAll in interface XPuttingSequence<E>putAll in interface XSequence<E>elements - to addXList<E> putAll(E[] elements, int offset, int length)
XPuttingBag
In this implementation it is identical to XPuttingBag.addAll(Object[], int, int)
putAll in interface XBag<E>putAll in interface XBasicList<E>putAll in interface XBasicSequence<E>putAll in interface XCollection<E>putAll in interface XExpandingList<E>putAll in interface XExpandingSequence<E>putAll in interface XIncreasingList<E>putAll in interface XIncreasingSequence<E>putAll in interface XInputtingList<E>putAll in interface XInputtingSequence<E>putAll in interface XPutGetCollection<E>putAll in interface XPutGetList<E>putAll in interface XPutGetSequence<E>putAll in interface XPuttingBag<E>putAll in interface XPuttingCollection<E>putAll in interface XPuttingList<E>putAll in interface XPuttingSequence<E>putAll in interface XSequence<E>elements - to addoffset - start index of elements-array to add to collectionlength - length of elements-array to add to collectionXList<E> putAll(XGettingCollection<? extends E> elements)
XPuttingBag
In this implementation it is identical to XPuttingBag.addAll(XGettingCollection)
putAll in interface XBag<E>putAll in interface XBasicList<E>putAll in interface XBasicSequence<E>putAll in interface XCollection<E>putAll in interface XExpandingList<E>putAll in interface XExpandingSequence<E>putAll in interface XIncreasingList<E>putAll in interface XIncreasingSequence<E>putAll in interface XInputtingList<E>putAll in interface XInputtingSequence<E>putAll in interface XPutGetCollection<E>putAll in interface XPutGetList<E>putAll in interface XPutGetSequence<E>putAll in interface XPuttingBag<E>putAll in interface XPuttingCollection<E>putAll in interface XPuttingList<E>putAll in interface XPuttingSequence<E>putAll in interface XSequence<E>elements - to addXList<E> prependAll(E... elements)
prependAll in interface XExpandingList<E>prependAll in interface XExpandingSequence<E>prependAll in interface XExtendingList<E>prependAll in interface XExtendingSequence<E>prependAll in interface XIncreasingList<E>prependAll in interface XIncreasingSequence<E>prependAll in interface XInputtingList<E>prependAll in interface XInputtingSequence<E>prependAll in interface XInsertingSequence<E>prependAll in interface XPrependingList<E>prependAll in interface XPrependingSequence<E>prependAll in interface XPreputtingList<E>prependAll in interface XPreputtingSequence<E>XList<E> prependAll(E[] elements, int offset, int length)
prependAll in interface XExpandingList<E>prependAll in interface XExpandingSequence<E>prependAll in interface XExtendingList<E>prependAll in interface XExtendingSequence<E>prependAll in interface XIncreasingList<E>prependAll in interface XIncreasingSequence<E>prependAll in interface XInputtingList<E>prependAll in interface XInputtingSequence<E>prependAll in interface XInsertingSequence<E>prependAll in interface XPrependingList<E>prependAll in interface XPrependingSequence<E>prependAll in interface XPreputtingList<E>prependAll in interface XPreputtingSequence<E>XList<E> prependAll(XGettingCollection<? extends E> elements)
prependAll in interface XExpandingList<E>prependAll in interface XExpandingSequence<E>prependAll in interface XExtendingList<E>prependAll in interface XExtendingSequence<E>prependAll in interface XIncreasingList<E>prependAll in interface XIncreasingSequence<E>prependAll in interface XInputtingList<E>prependAll in interface XInputtingSequence<E>prependAll in interface XInsertingSequence<E>prependAll in interface XPrependingList<E>prependAll in interface XPrependingSequence<E>prependAll in interface XPreputtingList<E>prependAll in interface XPreputtingSequence<E>XList<E> preputAll(E... elements)
preputAll in interface XExpandingList<E>preputAll in interface XExpandingSequence<E>preputAll in interface XIncreasingList<E>preputAll in interface XIncreasingSequence<E>preputAll in interface XInputtingList<E>preputAll in interface XInputtingSequence<E>preputAll in interface XPreputtingList<E>preputAll in interface XPreputtingSequence<E>XList<E> preputAll(E[] elements, int offset, int length)
preputAll in interface XExpandingList<E>preputAll in interface XExpandingSequence<E>preputAll in interface XIncreasingList<E>preputAll in interface XIncreasingSequence<E>preputAll in interface XInputtingList<E>preputAll in interface XInputtingSequence<E>preputAll in interface XPreputtingList<E>preputAll in interface XPreputtingSequence<E>XList<E> preputAll(XGettingCollection<? extends E> elements)
preputAll in interface XExpandingList<E>preputAll in interface XExpandingSequence<E>preputAll in interface XIncreasingList<E>preputAll in interface XIncreasingSequence<E>preputAll in interface XInputtingList<E>preputAll in interface XInputtingSequence<E>preputAll in interface XPreputtingList<E>preputAll in interface XPreputtingSequence<E>XList<E> setAll(long index, E... elements)
setAll in interface XDecreasingList<E>setAll in interface XDecreasingSequence<E>setAll in interface XIncreasingList<E>setAll in interface XSettingList<E>setAll in interface XSettingSequence<E>XList<E> set(long index, E[] elements, int offset, int length)
set in interface XDecreasingList<E>set in interface XDecreasingSequence<E>set in interface XIncreasingList<E>set in interface XSettingList<E>set in interface XSettingSequence<E>XList<E> set(long index, XGettingSequence<? extends E> elements, long offset, long length)
set in interface XDecreasingList<E>set in interface XDecreasingSequence<E>set in interface XIncreasingList<E>set in interface XSettingList<E>set in interface XSettingSequence<E>XList<E> swap(long indexA, long indexB)
swap in interface XDecreasingList<E>swap in interface XDecreasingSequence<E>swap in interface XIncreasingList<E>swap in interface XIncreasingSequence<E>swap in interface XOrderingSequence<E>swap in interface XSettingList<E>swap in interface XSettingSequence<E>swap in interface XSortableSequence<E>XList<E> swap(long indexA, long indexB, long length)
swap in interface XDecreasingList<E>swap in interface XDecreasingSequence<E>swap in interface XIncreasingList<E>swap in interface XIncreasingSequence<E>swap in interface XOrderingSequence<E>swap in interface XSettingList<E>swap in interface XSettingSequence<E>swap in interface XSortableSequence<E>XList<E> retainRange(long offset, long length)
XRemovingSequenceretainRange in interface XRemovingSequence<E>offset - is the index of the first element to retainlength - is the amount of elements to retainXList<E> copy()
XGettingCollectioncopy in interface Copyablecopy in interface XAddGetCollection<E>copy in interface XBag<E>copy in interface XBasicList<E>copy in interface XBasicSequence<E>copy in interface XCollection<E>copy in interface XDecreasingList<E>copy in interface XDecreasingSequence<E>copy in interface XGettingBag<E>copy in interface XGettingCollection<E>copy in interface XGettingList<E>copy in interface XGettingSequence<E>copy in interface XIncreasingList<E>copy in interface XIncreasingSequence<E>copy in interface XProcessingBag<E>copy in interface XProcessingList<E>copy in interface XPutGetCollection<E>copy in interface XPutGetList<E>copy in interface XPutGetSequence<E>copy in interface XReplacingBag<E>copy in interface XSequence<E>copy in interface XSettingList<E>copy in interface XSettingSequence<E>copy in interface XSortableSequence<E>XList<E> toReversed()
XBasicListXBasicList with the reversed order of elements.
This method creates a new collection and does not change the
existing collection.
Furthermore changes to the reversed collection do not reflect to the original.
toReversed in interface XBasicList<E>toReversed in interface XBasicSequence<E>toReversed in interface XDecreasingList<E>toReversed in interface XDecreasingSequence<E>toReversed in interface XGettingList<E>toReversed in interface XGettingSequence<E>toReversed in interface XIncreasingList<E>toReversed in interface XIncreasingSequence<E>toReversed in interface XProcessingList<E>toReversed in interface XProcessingSequence<E>toReversed in interface XPutGetList<E>toReversed in interface XPutGetSequence<E>toReversed in interface XSequence<E>toReversed in interface XSettingList<E>toReversed in interface XSettingSequence<E>toReversed in interface XSortableSequence<E>XList<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 XDecreasingList<E>reverse in interface XDecreasingSequence<E>reverse in interface XIncreasingList<E>reverse in interface XIncreasingSequence<E>reverse in interface XOrderingSequence<E>reverse in interface XSettingList<E>reverse in interface XSettingSequence<E>reverse in interface XSortableSequence<E>XList<E> range(long fromIndex, long toIndex)
range in interface XDecreasingList<E>range in interface XDecreasingSequence<E>range in interface XGettingList<E>range in interface XGettingSequence<E>range in interface XIncreasingList<E>range in interface XIncreasingSequence<E>range in interface XSettingList<E>range in interface XSettingSequence<E>XList<E> fill(long offset, long length, E element)
XSettingListnull.fill in interface XDecreasingList<E>fill in interface XIncreasingList<E>fill in interface XSettingList<E>offset - from the start of the collection (start index)length - of how many slots should be filledelement - to use for filling of slotsXList<E> sort(Comparator<? super E> comparator)
Sortablesort in interface Sortable<E>sort in interface XDecreasingList<E>sort in interface XDecreasingSequence<E>sort in interface XIncreasingList<E>sort in interface XIncreasingSequence<E>sort in interface XSequence<E>sort in interface XSettingList<E>sort in interface XSettingSequence<E>sort in interface XSortableSequence<E>comparator - to sort this collectionXList<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 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 elementXList<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 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.XList<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 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 22XList<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 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.<P extends Consumer<? super E>> P iterate(P procedure)
XIterableXIterable
until all elements have been processed or the action throws an
exception. Unless otherwise specified by the implementing class,
procedures are performed in the order of iteration (if an iteration order
is specified). Exceptions thrown by the procedure are relayed to the
caller.Iterable.forEach(Consumer).Copyright © 2022 MicroStream Software. All rights reserved.