public final class SubList<E> extends SubListAccessor<E> implements XList<E>
XList.Creator<E>XBag.Factory<E>XPutGetList.Factory<E>XInputtingList.Factory<E>XProcessingList.Factory<E>XBasicSequence.Factory<E>| Constructor and Description |
|---|
SubList(XList<E> list,
long fromIndex,
long toIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(E element) |
boolean |
add(E e)
Adds the passed element.
|
SubList<E> |
addAll(E... elements) |
SubList<E> |
addAll(E[] elements,
int offset,
int length) |
SubList<E> |
addAll(XGettingCollection<? extends E> elements) |
void |
clear()
Clears all elements from the collection while leaving the capacity as it is.
|
long |
consolidate()
Consolidates the internal storage of this collection by discarding all elements of the internal storage that
have become obsolete or otherwise unneeded anymore.
|
SubList<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.
|
long |
currentCapacity()
Returns the current amount of elements this instance can hold before a storage rebuild becomes necessary.
|
SubList<E> |
ensureCapacity(long minimalCapacity) |
SubList<E> |
ensureFreeCapacity(long minimalFreeCapacity)
Ensures that the next minimalFreeCapacity elements can be actually added in a fast way,
meaning for example no internal storage rebuild will be necessary.
|
E |
fetch() |
SubList<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. |
boolean |
input(long index,
E element) |
long |
inputAll(long index,
E... elements) |
long |
inputAll(long index,
E[] elements,
int offset,
int length) |
long |
inputAll(long index,
XGettingCollection<? extends E> elements) |
boolean |
insert(long index,
E element) |
long |
insertAll(long index,
E... elements) |
long |
insertAll(long index,
E[] elements,
int offset,
int length) |
long |
insertAll(long index,
XGettingCollection<? extends E> elements) |
<C extends Consumer<? super E>> |
moveSelection(C target,
long... indices) |
<C extends Consumer<? super E>> |
moveTo(C target,
Predicate<? super E> predicate) |
boolean |
nullAdd() |
boolean |
nullInput(long index) |
boolean |
nullInsert(long index) |
boolean |
nullPrepend() |
boolean |
nullPreput() |
boolean |
nullPut() |
long |
nullRemove() |
one.microstream.collections.SubList.OldSubList<E> |
old() |
long |
optimize()
Optimizes the internal storage of this collection and returns the storage size of the collection after the
process is complete.
|
E |
pick() |
E |
pinch() |
E |
pop() |
boolean |
prepend(E element) |
SubList<E> |
prependAll(E... elements) |
SubList<E> |
prependAll(E[] elements,
int srcStartIndex,
int srcLength) |
SubList<E> |
prependAll(XGettingCollection<? extends E> elements) |
boolean |
preput(E element) |
SubList<E> |
preputAll(E... elements) |
SubList<E> |
preputAll(E[] elements,
int srcStartIndex,
int srcLength) |
SubList<E> |
preputAll(XGettingCollection<? extends E> elements) |
<P extends Consumer<? super E>> |
process(P procedure) |
boolean |
put(E element)
Adds the specified element to this collection if it is not already present (optional operation).
|
SubList<E> |
putAll(E... elements)
Adds the specified elements to this collection if it is not already present (optional operation).
|
SubList<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. |
SubList<E> |
putAll(XGettingCollection<? extends E> elements)
Adds the specified elements to this collection if it is not already present (optional operation).
|
SubList<E> |
range(long fromIndex,
long toIndex) |
long |
remove(E element) |
long |
removeAll(XGettingCollection<? extends E> elements) |
E |
removeAt(long index) |
long |
removeBy(Predicate<? super E> predicate) |
long |
removeDuplicates() |
long |
removeDuplicates(Equalator<? super E> equalator) |
boolean |
removeOne(E element) |
SubList<E> |
removeRange(long startIndex,
long length) |
long |
removeSelection(long[] indices) |
long |
retainAll(XGettingCollection<? extends E> elements)
Removing all elements except the ones contained in the given elements-collection.
|
SubList<E> |
retainRange(long startIndex,
long length)
Removing all elements but the ones from the offset (basically start index)
to the offset+length (end index).
|
E |
retrieve(E element) |
E |
retrieveBy(Predicate<? super E> predicate) |
SubList<E> |
reverse()
Reverses the order of its own elements and returns itself.
|
SubList<E> |
set(long offset,
E[] src,
int srcIndex,
int srcLength) |
SubList<E> |
set(long offset,
XGettingSequence<? extends E> elements,
long elementsOffset,
long elementsLength) |
SubList<E> |
setAll(long offset,
E... elements) |
SubList<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. |
SubList<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. |
SubList<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. |
SubList<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. |
SubList<E> |
sort(Comparator<? super E> comparator)
Sorts this collection according to the given comparator
and returns itself.
|
SubList<E> |
swap(long indexA,
long indexB) |
SubList<E> |
swap(long indexA,
long indexB,
long length) |
SubList<E> |
toReversed()
Creates a new
XGettingSequence with the reversed order of elements. |
void |
truncate()
Clears (and reinitializes if needed) this collection in the fastest possible way, i.e.
|
replace, replace, replaceAll, replaceOne, replaceOne, set, setFirst, setGet, setLast, substitute, substitute, viewapplies, at, contains, containsAll, containsId, containsSearched, copySelection, copyTo, count, countBy, distinct, distinct, equality, equals, equalsContent, except, filterTo, first, get, getEndIndex, hasVolatileElements, immure, indexBy, indexOf, intersect, isEmpty, isFull, isSorted, iterate, iterateIndexed, iterator, join, last, lastIndexBy, lastIndexOf, listIterator, listIterator, max, maximumCapacity, maxIndex, min, minIndex, nullAllowed, nullContained, peek, poll, remainingCapacity, scan, search, seek, shiftIndices, size, toArray, toArray, union, viewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentFreeCapacityisFull, maximumCapacity, remainingCapacitynullAllowedsortIfApplicableimmure, viewreplace, replace, replaceAll, replaceOne, replaceOne, substitutesubstituteimmure, listIterator, listIterator, view, viewset, setFirst, setGet, setLastviewpublic final long currentCapacity()
CapacityExtendable
For carrier implementations that don't have a concept of storage rebuilding (like linked list for example)
this method returns the same value as CapacityCarrying.maximumCapacity().
currentCapacity in interface CapacityExtendablepublic final void clear()
XRemovingCollectionclear in interface XRemovingCollection<E>clear in interface Clearablepublic final void accept(E element)
public final boolean add(E e)
XAddingCollectionadd in interface XAddingCollection<E>e - to addtrue if element was added; false if not@SafeVarargs public final SubList<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 XList<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>public final SubList<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 XList<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>public final SubList<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 XList<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>public final boolean nullAdd()
nullAdd in interface XAddingCollection<E>public final boolean put(E element)
XPuttingCollectionput in interface XPuttingCollection<E>element - to add@SafeVarargs public final SubList<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 XList<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 addpublic final SubList<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 XList<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 collectionpublic final SubList<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 XList<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 addpublic final boolean nullPut()
nullPut in interface XPuttingCollection<E>public final boolean prepend(E element)
prepend in interface XPrependingSequence<E>@SafeVarargs public final SubList<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 XList<E>prependAll in interface XPrependingList<E>prependAll in interface XPrependingSequence<E>prependAll in interface XPreputtingList<E>prependAll in interface XPreputtingSequence<E>public final SubList<E> prependAll(E[] elements, int srcStartIndex, int srcLength)
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 XList<E>prependAll in interface XPrependingList<E>prependAll in interface XPrependingSequence<E>prependAll in interface XPreputtingList<E>prependAll in interface XPreputtingSequence<E>public final SubList<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 XList<E>prependAll in interface XPrependingList<E>prependAll in interface XPrependingSequence<E>prependAll in interface XPreputtingList<E>prependAll in interface XPreputtingSequence<E>public final boolean nullPrepend()
nullPrepend in interface XPrependingSequence<E>public final boolean preput(E element)
preput in interface XPreputtingSequence<E>@SafeVarargs public final SubList<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 XList<E>preputAll in interface XPreputtingList<E>preputAll in interface XPreputtingSequence<E>public final SubList<E> preputAll(E[] elements, int srcStartIndex, int srcLength)
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 XList<E>preputAll in interface XPreputtingList<E>preputAll in interface XPreputtingSequence<E>public final SubList<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 XList<E>preputAll in interface XPreputtingList<E>preputAll in interface XPreputtingSequence<E>public final boolean nullPreput()
nullPreput in interface XPreputtingSequence<E>public final boolean insert(long index,
E element)
insert in interface XInsertingSequence<E>@SafeVarargs public final long insertAll(long index, E... elements)
insertAll in interface XInsertingSequence<E>public final long insertAll(long index,
E[] elements,
int offset,
int length)
insertAll in interface XInsertingSequence<E>public final long insertAll(long index,
XGettingCollection<? extends E> elements)
insertAll in interface XInsertingSequence<E>public final boolean nullInsert(long index)
nullInsert in interface XInsertingSequence<E>public final boolean input(long index,
E element)
input in interface XInputtingSequence<E>@SafeVarargs public final long inputAll(long index, E... elements)
inputAll in interface XInputtingSequence<E>public final long inputAll(long index,
E[] elements,
int offset,
int length)
inputAll in interface XInputtingSequence<E>public final long inputAll(long index,
XGettingCollection<? extends E> elements)
inputAll in interface XInputtingSequence<E>public final boolean nullInput(long index)
nullInput in interface XInputtingSequence<E>public final <P extends Consumer<? super E>> P process(P procedure)
process in interface Processable<E>public final long removeDuplicates(Equalator<? super E> equalator)
removeDuplicates in interface XProcessingCollection<E>public final E retrieve(E element)
retrieve in interface XProcessingCollection<E>public final E retrieveBy(Predicate<? super E> predicate)
retrieveBy in interface XProcessingCollection<E>public final boolean removeOne(E element)
removeOne in interface XRemovingCollection<E>public final long remove(E element)
remove in interface XRemovingCollection<E>public final long removeAll(XGettingCollection<? extends E> elements)
removeAll in interface XRemovingCollection<E>public final long removeDuplicates()
removeDuplicates in interface XRemovingCollection<E>public final long retainAll(XGettingCollection<? extends E> elements)
XRemovingCollectionBasically intersect this collection with the given collection and only keeping the resulting elements.
retainAll in interface XRemovingCollection<E>elements - to retainpublic final long removeBy(Predicate<? super E> predicate)
removeBy in interface XProcessingCollection<E>public final void truncate()
XRemovingCollectiontruncate in interface Truncateabletruncate in interface XRemovingCollection<E>public final SubList<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 XList<E>range in interface XSettingList<E>range in interface XSettingSequence<E>range in class SubListAccessor<E>public final SubList<E> ensureFreeCapacity(long minimalFreeCapacity)
CapacityExtendableensureFreeCapacity in interface CapacityExtendableminimalFreeCapacity - the capacity to ensurepublic final SubList<E> ensureCapacity(long minimalCapacity)
ensureCapacity in interface CapacityExtendablepublic final long consolidate()
ConsolidatableCollectionWeakReference entries whose reference has
been cleared).consolidate in interface ConsolidatableCollectionconsolidate in interface XRemovingCollection<E>public final <C extends Consumer<? super E>> C moveTo(C target, Predicate<? super E> predicate)
moveTo in interface XProcessingCollection<E>public final long optimize()
OptimizableCollectionoptimize in interface OptimizableCollectionoptimize in interface XRemovingCollection<E>public final <C extends Consumer<? super E>> C moveSelection(C target, long... indices)
moveSelection in interface XProcessingSequence<E>public final E removeAt(long index) throws UnsupportedOperationException
removeAt in interface XProcessingSequence<E>UnsupportedOperationExceptionpublic final E fetch()
fetch in interface XProcessingCollection<E>public final E pop()
pop in interface XProcessingSequence<E>public final E pinch()
pinch in interface XProcessingCollection<E>public final E pick()
pick in interface XProcessingSequence<E>public final SubList<E> removeRange(long startIndex, long length)
removeRange in interface XRemovingSequence<E>public final SubList<E> retainRange(long startIndex, long length)
XRemovingSequenceretainRange in interface XList<E>retainRange in interface XRemovingSequence<E>startIndex - is the index of the first element to retainlength - is the amount of elements to retainpublic final long removeSelection(long[] indices)
removeSelection in interface XRemovingSequence<E>public final SubList<E> toReversed()
XGettingSequenceXGettingSequence with the reversed order of elements.
This method creates a new collection and does not change the existing collection.
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 XList<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>toReversed in class SubListAccessor<E>public final SubList<E> copy()
XGettingSequencecopy 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 XList<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>copy in interface Copyablecopy in class SubListAccessor<E>public final long nullRemove()
nullRemove in interface XRemovingCollection<E>public final SubList<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 XList<E>sort in interface XSequence<E>sort in interface XSettingList<E>sort in interface XSettingSequence<E>sort in interface XSortableSequence<E>sort in class SubListAccessor<E>comparator - to sort this collectionpublic final SubList<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 XList<E>swap in interface XOrderingSequence<E>swap in interface XSettingList<E>swap in interface XSettingSequence<E>swap in interface XSortableSequence<E>swap in class SubListAccessor<E>public final SubList<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 XList<E>swap in interface XOrderingSequence<E>swap in interface XSettingList<E>swap in interface XSettingSequence<E>swap in interface XSortableSequence<E>swap in class SubListAccessor<E>@SafeVarargs public final SubList<E> setAll(long offset, E... elements)
setAll in interface XDecreasingList<E>setAll in interface XDecreasingSequence<E>setAll in interface XIncreasingList<E>setAll in interface XList<E>setAll in interface XSettingList<E>setAll in interface XSettingSequence<E>setAll in class SubListAccessor<E>public final SubList<E> set(long offset, E[] src, int srcIndex, int srcLength)
set in interface XDecreasingList<E>set in interface XDecreasingSequence<E>set in interface XIncreasingList<E>set in interface XList<E>set in interface XSettingList<E>set in interface XSettingSequence<E>set in class SubListAccessor<E>public final SubList<E> set(long offset, XGettingSequence<? extends E> elements, long elementsOffset, long elementsLength)
set in interface XDecreasingList<E>set in interface XDecreasingSequence<E>set in interface XIncreasingList<E>set in interface XList<E>set in interface XSettingList<E>set in interface XSettingSequence<E>set in class SubListAccessor<E>public final SubList<E> fill(long offset, long length, E element)
XSettingListnull.fill in interface XDecreasingList<E>fill in interface XIncreasingList<E>fill in interface XList<E>fill in interface XSettingList<E>fill in class SubListAccessor<E>offset - from the start of the collection (start index)length - of how many slots should be filledelement - to use for filling of slotspublic final one.microstream.collections.SubList.OldSubList<E> old()
old in interface XGettingCollection<E>old in interface XGettingList<E>old in class SubListAccessor<E>public final SubList<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 XList<E>reverse in interface XOrderingSequence<E>reverse in interface XSettingList<E>reverse in interface XSettingSequence<E>reverse in interface XSortableSequence<E>reverse in class SubListAccessor<E>public final SubList<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 XList<E>shiftTo in interface XOrderingSequence<E>shiftTo in interface XSortableSequence<E>shiftTo in class SubListAccessor<E>sourceIndex - points to the source element; Index of the source elementtargetIndex - points to the target element; Index of the target elementpublic final SubList<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 XList<E>shiftTo in interface XOrderingSequence<E>shiftTo in interface XSortableSequence<E>shiftTo in class SubListAccessor<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.public final SubList<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 XList<E>shiftBy in interface XOrderingSequence<E>shiftBy in interface XSortableSequence<E>shiftBy in class SubListAccessor<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 22public final SubList<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 XList<E>shiftBy in interface XOrderingSequence<E>shiftBy in interface XSortableSequence<E>shiftBy in class SubListAccessor<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.Copyright © 2022 MicroStream Software. All rights reserved.