Class SubList<E>
- All Implemented Interfaces:
Iterable<E>,Consumer<E>,CapacityCarrying,CapacityExtendable,ConsolidatableCollection,ExtendedBag<E>,ExtendedCollection<E>,ExtendedList<E>,ExtendedSequence<E>,OptimizableCollection,ReleasingCollection<E>,Sized,Truncateable,Sortable<E>,SortableProcedure<E>,XAddGetCollection<E>,XAddingBag<E>,XAddingCollection<E>,XAddingList<E>,XAddingSequence<E>,XBag<E>,XBasicList<E>,XBasicSequence<E>,XCollection<E>,XDecreasingList<E>,XDecreasingSequence<E>,XExpandingList<E>,XExpandingSequence<E>,XExtendingList<E>,XExtendingSequence<E>,XGettingBag<E>,XGettingCollection<E>,XGettingList<E>,XGettingSequence<E>,XIncreasingList<E>,XIncreasingSequence<E>,XIndexIterable<E>,XInputtingList<E>,XInputtingSequence<E>,XInsertingSequence<E>,XIterable<E>,XJoinable<E>,XList<E>,XOrderingSequence<E>,XPrependingList<E>,XPrependingSequence<E>,XPreputtingList<E>,XPreputtingSequence<E>,XProcessingBag<E>,XProcessingCollection<E>,XProcessingList<E>,XProcessingSequence<E>,XPutGetBag<E>,XPutGetCollection<E>,XPutGetList<E>,XPutGetSequence<E>,XPuttingBag<E>,XPuttingCollection<E>,XPuttingList<E>,XPuttingSequence<E>,XRemovingBag<E>,XRemovingCollection<E>,XRemovingList<E>,XRemovingSequence<E>,XReplacingBag<E>,XReplacingCollection<E>,XSequence<E>,XSettingList<E>,XSettingSequence<E>,XSortableSequence<E>,Processable<E>,Clearable,Copyable
public final class SubList<E> extends SubListAccessor<E> implements XList<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollection
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>Nested classes/interfaces inherited from interface one.microstream.collections.types.XBag
XBag.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XBasicSequence
XBasicSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingCollection
XGettingCollection.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingList
XGettingList.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSequence
XGettingSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XInputtingList
XInputtingList.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XList
XList.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingList
XProcessingList.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingSequence
XProcessingSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XPutGetList
XPutGetList.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XReplacingBag
XReplacingBag.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XSettingList
XSettingList.Creator<E> -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaccept(E element)booleanadd(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)voidclear()Clears all elements from the collection while leaving the capacity as it is.longconsolidate()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.longcurrentCapacity()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.Efetch()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 isnull.booleaninput(long index, E element)longinputAll(long index, E... elements)longinputAll(long index, E[] elements, int offset, int length)longinputAll(long index, XGettingCollection<? extends E> elements)booleaninsert(long index, E element)longinsertAll(long index, E... elements)longinsertAll(long index, E[] elements, int offset, int length)longinsertAll(long index, XGettingCollection<? extends E> elements)<C extends Consumer<? super E>>
CmoveSelection(C target, long... indices)<C extends Consumer<? super E>>
CmoveTo(C target, Predicate<? super E> predicate)booleannullAdd()booleannullInput(long index)booleannullInsert(long index)booleannullPrepend()booleannullPreput()booleannullPut()longnullRemove()one.microstream.collections.SubList.OldSubList<E>old()longoptimize()Optimizes the internal storage of this collection and returns the storage size of the collection after the process is complete.Epick()Epinch()Epop()booleanprepend(E element)SubList<E>prependAll(E... elements)SubList<E>prependAll(E[] elements, int srcStartIndex, int srcLength)SubList<E>prependAll(XGettingCollection<? extends E> elements)booleanpreput(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>>
Pprocess(P procedure)booleanput(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)longremove(E element)longremoveAll(XGettingCollection<? extends E> elements)EremoveAt(long index)longremoveBy(Predicate<? super E> predicate)longremoveDuplicates()longremoveDuplicates(Equalator<? super E> equalator)booleanremoveOne(E element)SubList<E>removeRange(long startIndex, long length)longremoveSelection(long[] indices)longretainAll(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).Eretrieve(E element)EretrieveBy(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 newXGettingSequencewith the reversed order of elements.voidtruncate()Clears (and reinitializes if needed) this collection in the fastest possible way, i.e.Methods inherited from class one.microstream.collections.SubListAccessor
replace, replace, replaceAll, replaceOne, replaceOne, set, setFirst, setGet, setLast, substitute, substitute, viewMethods inherited from class one.microstream.collections.SubListView
applies, 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, viewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacityMethods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentFreeCapacityMethods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowedMethods inherited from interface one.microstream.collections.types.XGettingCollection
applies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, hashCode, hasVolatileElements, intersect, intSize, iterator, join, max, min, nullContained, search, seek, size, toArray, toArray, unionMethods inherited from interface one.microstream.collections.types.XGettingList
immure, listIterator, listIterator, view, viewMethods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scanMethods inherited from interface one.microstream.collections.types.XReplacingBag
replace, replace, replaceAll, replaceOne, replaceOne, substituteMethods inherited from interface one.microstream.collections.types.XSettingSequence
set, setFirst, setGet, setLast
-
Constructor Details
-
Method Details
-
currentCapacity
public final long currentCapacity()Description copied from interface:CapacityExtendableReturns the current amount of elements this instance can hold before a storage rebuild becomes necessary.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().- Specified by:
currentCapacityin interfaceCapacityExtendable- Returns:
- the current capacity of this instance before a rebuild is required.
-
clear
public final void clear()Description copied from interface:XRemovingCollectionClears all elements from the collection while leaving the capacity as it is.- Specified by:
clearin interfaceClearable- Specified by:
clearin interfaceXRemovingCollection<E>
-
accept
-
add
Description copied from interface:XAddingCollectionAdds the passed element.- Specified by:
addin interfaceXAddingCollection<E>- Parameters:
e- to add- Returns:
trueif element was added;falseif not
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddingBag<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingList<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXBag<E>- Specified by:
addAllin interfaceXBasicList<E>- Specified by:
addAllin interfaceXBasicSequence<E>- Specified by:
addAllin interfaceXCollection<E>- Specified by:
addAllin interfaceXExpandingList<E>- Specified by:
addAllin interfaceXExpandingSequence<E>- Specified by:
addAllin interfaceXExtendingList<E>- Specified by:
addAllin interfaceXExtendingSequence<E>- Specified by:
addAllin interfaceXIncreasingList<E>- Specified by:
addAllin interfaceXIncreasingSequence<E>- Specified by:
addAllin interfaceXInputtingList<E>- Specified by:
addAllin interfaceXInputtingSequence<E>- Specified by:
addAllin interfaceXInsertingSequence<E>- Specified by:
addAllin interfaceXList<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPutGetList<E>- Specified by:
addAllin interfaceXPutGetSequence<E>- Specified by:
addAllin interfaceXPuttingBag<E>- Specified by:
addAllin interfaceXPuttingList<E>- Specified by:
addAllin interfaceXSequence<E>
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddingBag<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingList<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXBag<E>- Specified by:
addAllin interfaceXBasicList<E>- Specified by:
addAllin interfaceXBasicSequence<E>- Specified by:
addAllin interfaceXCollection<E>- Specified by:
addAllin interfaceXExpandingList<E>- Specified by:
addAllin interfaceXExpandingSequence<E>- Specified by:
addAllin interfaceXExtendingList<E>- Specified by:
addAllin interfaceXExtendingSequence<E>- Specified by:
addAllin interfaceXIncreasingList<E>- Specified by:
addAllin interfaceXIncreasingSequence<E>- Specified by:
addAllin interfaceXInputtingList<E>- Specified by:
addAllin interfaceXInputtingSequence<E>- Specified by:
addAllin interfaceXInsertingSequence<E>- Specified by:
addAllin interfaceXList<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPutGetList<E>- Specified by:
addAllin interfaceXPutGetSequence<E>- Specified by:
addAllin interfaceXPuttingBag<E>- Specified by:
addAllin interfaceXPuttingList<E>- Specified by:
addAllin interfaceXSequence<E>
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddingBag<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingList<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXBag<E>- Specified by:
addAllin interfaceXBasicList<E>- Specified by:
addAllin interfaceXBasicSequence<E>- Specified by:
addAllin interfaceXCollection<E>- Specified by:
addAllin interfaceXExpandingList<E>- Specified by:
addAllin interfaceXExpandingSequence<E>- Specified by:
addAllin interfaceXExtendingList<E>- Specified by:
addAllin interfaceXExtendingSequence<E>- Specified by:
addAllin interfaceXIncreasingList<E>- Specified by:
addAllin interfaceXIncreasingSequence<E>- Specified by:
addAllin interfaceXInputtingList<E>- Specified by:
addAllin interfaceXInputtingSequence<E>- Specified by:
addAllin interfaceXInsertingSequence<E>- Specified by:
addAllin interfaceXList<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPutGetList<E>- Specified by:
addAllin interfaceXPutGetSequence<E>- Specified by:
addAllin interfaceXPuttingBag<E>- Specified by:
addAllin interfaceXPuttingList<E>- Specified by:
addAllin interfaceXSequence<E>
-
nullAdd
public final boolean nullAdd()- Specified by:
nullAddin interfaceXAddingCollection<E>
-
put
Description copied from interface:XPuttingCollectionAdds the specified element to this collection if it is not already present (optional operation).- Specified by:
putin interfaceXPuttingCollection<E>- Parameters:
element- to add- Returns:
- true if this collection did not already contain the specified element
-
putAll
Description copied from interface:XPuttingBagAdds the specified elements to this collection if it is not already present (optional operation).In this implementation it is identical to
XPuttingBag.addAll(Object...)- Specified by:
putAllin interfaceXBag<E>- Specified by:
putAllin interfaceXBasicList<E>- Specified by:
putAllin interfaceXBasicSequence<E>- Specified by:
putAllin interfaceXCollection<E>- Specified by:
putAllin interfaceXExpandingList<E>- Specified by:
putAllin interfaceXExpandingSequence<E>- Specified by:
putAllin interfaceXIncreasingList<E>- Specified by:
putAllin interfaceXIncreasingSequence<E>- Specified by:
putAllin interfaceXInputtingList<E>- Specified by:
putAllin interfaceXInputtingSequence<E>- Specified by:
putAllin interfaceXList<E>- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPutGetList<E>- Specified by:
putAllin interfaceXPutGetSequence<E>- Specified by:
putAllin interfaceXPuttingBag<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingList<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Specified by:
putAllin interfaceXSequence<E>- Parameters:
elements- to add- Returns:
- this
-
putAll
Description copied from interface:XPuttingBagAdds 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.In this implementation it is identical to
XPuttingBag.addAll(Object[], int, int)- Specified by:
putAllin interfaceXBag<E>- Specified by:
putAllin interfaceXBasicList<E>- Specified by:
putAllin interfaceXBasicSequence<E>- Specified by:
putAllin interfaceXCollection<E>- Specified by:
putAllin interfaceXExpandingList<E>- Specified by:
putAllin interfaceXExpandingSequence<E>- Specified by:
putAllin interfaceXIncreasingList<E>- Specified by:
putAllin interfaceXIncreasingSequence<E>- Specified by:
putAllin interfaceXInputtingList<E>- Specified by:
putAllin interfaceXInputtingSequence<E>- Specified by:
putAllin interfaceXList<E>- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPutGetList<E>- Specified by:
putAllin interfaceXPutGetSequence<E>- Specified by:
putAllin interfaceXPuttingBag<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingList<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Specified by:
putAllin interfaceXSequence<E>- Parameters:
elements- to addoffset- start index of elements-array to add to collectionlength- length of elements-array to add to collection- Returns:
- this
-
putAll
Description copied from interface:XPuttingBagAdds the specified elements to this collection if it is not already present (optional operation).In this implementation it is identical to
XPuttingBag.addAll(XGettingCollection)- Specified by:
putAllin interfaceXBag<E>- Specified by:
putAllin interfaceXBasicList<E>- Specified by:
putAllin interfaceXBasicSequence<E>- Specified by:
putAllin interfaceXCollection<E>- Specified by:
putAllin interfaceXExpandingList<E>- Specified by:
putAllin interfaceXExpandingSequence<E>- Specified by:
putAllin interfaceXIncreasingList<E>- Specified by:
putAllin interfaceXIncreasingSequence<E>- Specified by:
putAllin interfaceXInputtingList<E>- Specified by:
putAllin interfaceXInputtingSequence<E>- Specified by:
putAllin interfaceXList<E>- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPutGetList<E>- Specified by:
putAllin interfaceXPutGetSequence<E>- Specified by:
putAllin interfaceXPuttingBag<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingList<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Specified by:
putAllin interfaceXSequence<E>- Parameters:
elements- to add- Returns:
- this
-
nullPut
public final boolean nullPut()- Specified by:
nullPutin interfaceXPuttingCollection<E>
-
prepend
- Specified by:
prependin interfaceXPrependingSequence<E>
-
prependAll
- Specified by:
prependAllin interfaceXExpandingList<E>- Specified by:
prependAllin interfaceXExpandingSequence<E>- Specified by:
prependAllin interfaceXExtendingList<E>- Specified by:
prependAllin interfaceXExtendingSequence<E>- Specified by:
prependAllin interfaceXIncreasingList<E>- Specified by:
prependAllin interfaceXIncreasingSequence<E>- Specified by:
prependAllin interfaceXInputtingList<E>- Specified by:
prependAllin interfaceXInputtingSequence<E>- Specified by:
prependAllin interfaceXInsertingSequence<E>- Specified by:
prependAllin interfaceXList<E>- Specified by:
prependAllin interfaceXPrependingList<E>- Specified by:
prependAllin interfaceXPrependingSequence<E>- Specified by:
prependAllin interfaceXPreputtingList<E>- Specified by:
prependAllin interfaceXPreputtingSequence<E>
-
prependAll
- Specified by:
prependAllin interfaceXExpandingList<E>- Specified by:
prependAllin interfaceXExpandingSequence<E>- Specified by:
prependAllin interfaceXExtendingList<E>- Specified by:
prependAllin interfaceXExtendingSequence<E>- Specified by:
prependAllin interfaceXIncreasingList<E>- Specified by:
prependAllin interfaceXIncreasingSequence<E>- Specified by:
prependAllin interfaceXInputtingList<E>- Specified by:
prependAllin interfaceXInputtingSequence<E>- Specified by:
prependAllin interfaceXInsertingSequence<E>- Specified by:
prependAllin interfaceXList<E>- Specified by:
prependAllin interfaceXPrependingList<E>- Specified by:
prependAllin interfaceXPrependingSequence<E>- Specified by:
prependAllin interfaceXPreputtingList<E>- Specified by:
prependAllin interfaceXPreputtingSequence<E>
-
prependAll
- Specified by:
prependAllin interfaceXExpandingList<E>- Specified by:
prependAllin interfaceXExpandingSequence<E>- Specified by:
prependAllin interfaceXExtendingList<E>- Specified by:
prependAllin interfaceXExtendingSequence<E>- Specified by:
prependAllin interfaceXIncreasingList<E>- Specified by:
prependAllin interfaceXIncreasingSequence<E>- Specified by:
prependAllin interfaceXInputtingList<E>- Specified by:
prependAllin interfaceXInputtingSequence<E>- Specified by:
prependAllin interfaceXInsertingSequence<E>- Specified by:
prependAllin interfaceXList<E>- Specified by:
prependAllin interfaceXPrependingList<E>- Specified by:
prependAllin interfaceXPrependingSequence<E>- Specified by:
prependAllin interfaceXPreputtingList<E>- Specified by:
prependAllin interfaceXPreputtingSequence<E>
-
nullPrepend
public final boolean nullPrepend()- Specified by:
nullPrependin interfaceXPrependingSequence<E>
-
preput
- Specified by:
preputin interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAllin interfaceXExpandingList<E>- Specified by:
preputAllin interfaceXExpandingSequence<E>- Specified by:
preputAllin interfaceXIncreasingList<E>- Specified by:
preputAllin interfaceXIncreasingSequence<E>- Specified by:
preputAllin interfaceXInputtingList<E>- Specified by:
preputAllin interfaceXInputtingSequence<E>- Specified by:
preputAllin interfaceXList<E>- Specified by:
preputAllin interfaceXPreputtingList<E>- Specified by:
preputAllin interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAllin interfaceXExpandingList<E>- Specified by:
preputAllin interfaceXExpandingSequence<E>- Specified by:
preputAllin interfaceXIncreasingList<E>- Specified by:
preputAllin interfaceXIncreasingSequence<E>- Specified by:
preputAllin interfaceXInputtingList<E>- Specified by:
preputAllin interfaceXInputtingSequence<E>- Specified by:
preputAllin interfaceXList<E>- Specified by:
preputAllin interfaceXPreputtingList<E>- Specified by:
preputAllin interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAllin interfaceXExpandingList<E>- Specified by:
preputAllin interfaceXExpandingSequence<E>- Specified by:
preputAllin interfaceXIncreasingList<E>- Specified by:
preputAllin interfaceXIncreasingSequence<E>- Specified by:
preputAllin interfaceXInputtingList<E>- Specified by:
preputAllin interfaceXInputtingSequence<E>- Specified by:
preputAllin interfaceXList<E>- Specified by:
preputAllin interfaceXPreputtingList<E>- Specified by:
preputAllin interfaceXPreputtingSequence<E>
-
nullPreput
public final boolean nullPreput()- Specified by:
nullPreputin interfaceXPreputtingSequence<E>
-
insert
- Specified by:
insertin interfaceXInsertingSequence<E>
-
insertAll
- Specified by:
insertAllin interfaceXInsertingSequence<E>
-
insertAll
- Specified by:
insertAllin interfaceXInsertingSequence<E>
-
insertAll
- Specified by:
insertAllin interfaceXInsertingSequence<E>
-
nullInsert
public final boolean nullInsert(long index)- Specified by:
nullInsertin interfaceXInsertingSequence<E>
-
input
- Specified by:
inputin interfaceXInputtingSequence<E>
-
inputAll
- Specified by:
inputAllin interfaceXInputtingSequence<E>
-
inputAll
- Specified by:
inputAllin interfaceXInputtingSequence<E>
-
inputAll
- Specified by:
inputAllin interfaceXInputtingSequence<E>
-
nullInput
public final boolean nullInput(long index)- Specified by:
nullInputin interfaceXInputtingSequence<E>
-
process
- Specified by:
processin interfaceProcessable<E>
-
removeDuplicates
- Specified by:
removeDuplicatesin interfaceXProcessingCollection<E>
-
retrieve
- Specified by:
retrievein interfaceXProcessingCollection<E>
-
retrieveBy
- Specified by:
retrieveByin interfaceXProcessingCollection<E>
-
removeOne
- Specified by:
removeOnein interfaceXRemovingCollection<E>
-
remove
- Specified by:
removein interfaceXRemovingCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceXRemovingCollection<E>
-
removeDuplicates
public final long removeDuplicates()- Specified by:
removeDuplicatesin interfaceXRemovingCollection<E>
-
retainAll
Description copied from interface:XRemovingCollectionRemoving all elements except the ones contained in the given elements-collection.Basically intersect this collection with the given collection and only keeping the resulting elements.
- Specified by:
retainAllin interfaceXRemovingCollection<E>- Parameters:
elements- to retain- Returns:
- Amount of deleted elements
-
removeBy
- Specified by:
removeByin interfaceXProcessingCollection<E>
-
truncate
public final void truncate()Description copied from interface:XRemovingCollectionClears (and reinitializes if needed) this collection in the fastest possible way, i.e. by allocating a new and empty internal storage of default capacity. The collection will be empty after calling this method.- Specified by:
truncatein interfaceTruncateable- Specified by:
truncatein interfaceXRemovingCollection<E>
-
range
- Specified by:
rangein interfaceXDecreasingList<E>- Specified by:
rangein interfaceXDecreasingSequence<E>- Specified by:
rangein interfaceXGettingList<E>- Specified by:
rangein interfaceXGettingSequence<E>- Specified by:
rangein interfaceXIncreasingList<E>- Specified by:
rangein interfaceXIncreasingSequence<E>- Specified by:
rangein interfaceXList<E>- Specified by:
rangein interfaceXSettingList<E>- Specified by:
rangein interfaceXSettingSequence<E>- Overrides:
rangein classSubListAccessor<E>
-
ensureFreeCapacity
Description copied from interface:CapacityExtendableEnsures that the next minimalFreeCapacity elements can be actually added in a fast way, meaning for example no internal storage rebuild will be necessary.- Specified by:
ensureFreeCapacityin interfaceCapacityExtendable
-
ensureCapacity
- Specified by:
ensureCapacityin interfaceCapacityExtendable
-
consolidate
public final long consolidate()Description copied from interface:ConsolidatableCollectionConsolidates the internal storage of this collection by discarding all elements of the internal storage that have become obsolete or otherwise unneeded anymore. (e.g.WeakReferenceentries whose reference has been cleared).- Specified by:
consolidatein interfaceConsolidatableCollection- Specified by:
consolidatein interfaceXRemovingCollection<E>- Returns:
- the number of discarded entries.
-
moveTo
- Specified by:
moveToin interfaceXProcessingCollection<E>
-
optimize
public final long optimize()Description copied from interface:OptimizableCollectionOptimizes the internal storage of this collection and returns the storage size of the collection after the process is complete.- Specified by:
optimizein interfaceOptimizableCollection- Specified by:
optimizein interfaceXRemovingCollection<E>- Returns:
- the storage size of the collection after the optimzation.
-
moveSelection
- Specified by:
moveSelectionin interfaceXProcessingSequence<E>
-
removeAt
- Specified by:
removeAtin interfaceXProcessingSequence<E>- Throws:
UnsupportedOperationException
-
fetch
- Specified by:
fetchin interfaceXProcessingCollection<E>
-
pop
- Specified by:
popin interfaceXProcessingSequence<E>
-
pinch
- Specified by:
pinchin interfaceXProcessingCollection<E>
-
pick
- Specified by:
pickin interfaceXProcessingSequence<E>
-
removeRange
- Specified by:
removeRangein interfaceXRemovingSequence<E>
-
retainRange
Description copied from interface:XRemovingSequenceRemoving all elements but the ones from the offset (basically start index) to the offset+length (end index).- Specified by:
retainRangein interfaceXList<E>- Specified by:
retainRangein interfaceXRemovingSequence<E>- Parameters:
startIndex- is the index of the first element to retainlength- is the amount of elements to retain- Returns:
- this
-
removeSelection
public final long removeSelection(long[] indices)- Specified by:
removeSelectionin interfaceXRemovingSequence<E>
-
toReversed
Description copied from interface:XGettingSequenceCreates a newXGettingSequencewith the reversed order of elements.This method creates a new collection and does not change the existing collection.
- Specified by:
toReversedin interfaceXBasicList<E>- Specified by:
toReversedin interfaceXBasicSequence<E>- Specified by:
toReversedin interfaceXDecreasingList<E>- Specified by:
toReversedin interfaceXDecreasingSequence<E>- Specified by:
toReversedin interfaceXGettingList<E>- Specified by:
toReversedin interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXIncreasingList<E>- Specified by:
toReversedin interfaceXIncreasingSequence<E>- Specified by:
toReversedin interfaceXList<E>- Specified by:
toReversedin interfaceXProcessingList<E>- Specified by:
toReversedin interfaceXProcessingSequence<E>- Specified by:
toReversedin interfaceXPutGetList<E>- Specified by:
toReversedin interfaceXPutGetSequence<E>- Specified by:
toReversedin interfaceXSequence<E>- Specified by:
toReversedin interfaceXSettingList<E>- Specified by:
toReversedin interfaceXSettingSequence<E>- Specified by:
toReversedin interfaceXSortableSequence<E>- Overrides:
toReversedin classSubListAccessor<E>- Returns:
- New copy of the collection
-
copy
Description copied from interface:XGettingSequenceCreates 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. The elements themselves are NOT copied (no deep copying).
The type of the returned list is the same as of this list if possible (i.e.: a SubList can not meaningful return a true copy that references its elements but still is a SubList)- Specified by:
copyin interfaceCopyable- Specified by:
copyin interfaceXAddGetCollection<E>- Specified by:
copyin interfaceXBag<E>- Specified by:
copyin interfaceXBasicList<E>- Specified by:
copyin interfaceXBasicSequence<E>- Specified by:
copyin interfaceXCollection<E>- Specified by:
copyin interfaceXDecreasingList<E>- Specified by:
copyin interfaceXDecreasingSequence<E>- Specified by:
copyin interfaceXGettingBag<E>- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXGettingList<E>- Specified by:
copyin interfaceXGettingSequence<E>- Specified by:
copyin interfaceXIncreasingList<E>- Specified by:
copyin interfaceXIncreasingSequence<E>- Specified by:
copyin interfaceXList<E>- Specified by:
copyin interfaceXProcessingBag<E>- Specified by:
copyin interfaceXProcessingList<E>- Specified by:
copyin interfaceXPutGetCollection<E>- Specified by:
copyin interfaceXPutGetList<E>- Specified by:
copyin interfaceXPutGetSequence<E>- Specified by:
copyin interfaceXReplacingBag<E>- Specified by:
copyin interfaceXSequence<E>- Specified by:
copyin interfaceXSettingList<E>- Specified by:
copyin interfaceXSettingSequence<E>- Specified by:
copyin interfaceXSortableSequence<E>- Overrides:
copyin classSubListAccessor<E>- Returns:
- a copy of this list
-
nullRemove
public final long nullRemove()- Specified by:
nullRemovein interfaceXRemovingCollection<E>
-
sort
Description copied from interface:SortableSorts this collection according to the given comparator and returns itself.- Specified by:
sortin interfaceSortable<E>- Specified by:
sortin interfaceXDecreasingList<E>- Specified by:
sortin interfaceXDecreasingSequence<E>- Specified by:
sortin interfaceXIncreasingList<E>- Specified by:
sortin interfaceXIncreasingSequence<E>- Specified by:
sortin interfaceXList<E>- Specified by:
sortin interfaceXSequence<E>- Specified by:
sortin interfaceXSettingList<E>- Specified by:
sortin interfaceXSettingSequence<E>- Specified by:
sortin interfaceXSortableSequence<E>- Overrides:
sortin classSubListAccessor<E>- Parameters:
comparator- to sort this collection- Returns:
- this
-
swap
- Specified by:
swapin interfaceXDecreasingList<E>- Specified by:
swapin interfaceXDecreasingSequence<E>- Specified by:
swapin interfaceXIncreasingList<E>- Specified by:
swapin interfaceXIncreasingSequence<E>- Specified by:
swapin interfaceXList<E>- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingList<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>- Overrides:
swapin classSubListAccessor<E>
-
swap
- Specified by:
swapin interfaceXDecreasingList<E>- Specified by:
swapin interfaceXDecreasingSequence<E>- Specified by:
swapin interfaceXIncreasingList<E>- Specified by:
swapin interfaceXIncreasingSequence<E>- Specified by:
swapin interfaceXList<E>- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingList<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>- Overrides:
swapin classSubListAccessor<E>
-
setAll
- Specified by:
setAllin interfaceXDecreasingList<E>- Specified by:
setAllin interfaceXDecreasingSequence<E>- Specified by:
setAllin interfaceXIncreasingList<E>- Specified by:
setAllin interfaceXList<E>- Specified by:
setAllin interfaceXSettingList<E>- Specified by:
setAllin interfaceXSettingSequence<E>- Overrides:
setAllin classSubListAccessor<E>
-
set
- Specified by:
setin interfaceXDecreasingList<E>- Specified by:
setin interfaceXDecreasingSequence<E>- Specified by:
setin interfaceXIncreasingList<E>- Specified by:
setin interfaceXList<E>- Specified by:
setin interfaceXSettingList<E>- Specified by:
setin interfaceXSettingSequence<E>- Overrides:
setin classSubListAccessor<E>
-
set
public final SubList<E> set(long offset, XGettingSequence<? extends E> elements, long elementsOffset, long elementsLength)- Specified by:
setin interfaceXDecreasingList<E>- Specified by:
setin interfaceXDecreasingSequence<E>- Specified by:
setin interfaceXIncreasingList<E>- Specified by:
setin interfaceXList<E>- Specified by:
setin interfaceXSettingList<E>- Specified by:
setin interfaceXSettingSequence<E>- Overrides:
setin classSubListAccessor<E>
-
fill
Description copied from interface:XSettingListFills all slots from the offset to the offset+length with the given element, regardless of whether or not a slot isnull.- Specified by:
fillin interfaceXDecreasingList<E>- Specified by:
fillin interfaceXIncreasingList<E>- Specified by:
fillin interfaceXList<E>- Specified by:
fillin interfaceXSettingList<E>- Overrides:
fillin classSubListAccessor<E>- Parameters:
offset- from the start of the collection (start index)length- of how many slots should be filledelement- to use for filling of slots- Returns:
- this
-
old
- Specified by:
oldin interfaceXGettingCollection<E>- Specified by:
oldin interfaceXGettingList<E>- Overrides:
oldin classSubListAccessor<E>
-
reverse
Description copied from interface:XSortableSequenceReverses the order of its own elements and returns itself.Unlike the
XSortableSequence.toReversed()method, this method does not create a new collection, but changes the order of its own elements.- Specified by:
reversein interfaceXDecreasingList<E>- Specified by:
reversein interfaceXDecreasingSequence<E>- Specified by:
reversein interfaceXIncreasingList<E>- Specified by:
reversein interfaceXIncreasingSequence<E>- Specified by:
reversein interfaceXList<E>- Specified by:
reversein interfaceXOrderingSequence<E>- Specified by:
reversein interfaceXSettingList<E>- Specified by:
reversein interfaceXSettingSequence<E>- Specified by:
reversein interfaceXSortableSequence<E>- Overrides:
reversein classSubListAccessor<E>- Returns:
- this
-
shiftTo
Description copied from interface:XOrderingSequenceMoves 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.Does not expand or shrink the capacity of the sequence.
Throws a
IndexExceededExceptionif sourceIndex or targetIndex are greater than the size of the sequence.- Specified by:
shiftToin interfaceXList<E>- Specified by:
shiftToin interfaceXOrderingSequence<E>- Specified by:
shiftToin interfaceXSortableSequence<E>- Overrides:
shiftToin classSubListAccessor<E>- Parameters:
sourceIndex- points to the source element; Index of the source elementtargetIndex- points to the target element; Index of the target element- Returns:
- this
-
shiftTo
Description copied from interface:XOrderingSequenceMoves 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.Does not expand or shrink the capacity of the sequence.
Throws a
IndexExceededExceptionif sourceIndex or targetIndex exceed the size of the sequence.- Specified by:
shiftToin interfaceXList<E>- Specified by:
shiftToin interfaceXOrderingSequence<E>- Specified by:
shiftToin interfaceXSortableSequence<E>- Overrides:
shiftToin classSubListAccessor<E>- Parameters:
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.- Returns:
- self
-
shiftBy
Description copied from interface:XOrderingSequenceMoves 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. ("to the right")Does not expand or shrink the capacity of the sequence.
Throws a
IndexExceededExceptionif sourceIndex or targetIndex (sourceIndex+distance) exceed the size of the sequence.- Specified by:
shiftByin interfaceXList<E>- Specified by:
shiftByin interfaceXOrderingSequence<E>- Specified by:
shiftByin interfaceXSortableSequence<E>- Overrides:
shiftByin classSubListAccessor<E>- Parameters:
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 22- Returns:
- self
-
shiftBy
Description copied from interface:XOrderingSequenceMoves 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. ("to the right")Does not expand or shrink the capacity of the sequence.
Throws a
IndexExceededExceptionif sourceIndex or targetIndex (sourceIndex+distance+length) exceed the size of the sequence.- Specified by:
shiftByin interfaceXList<E>- Specified by:
shiftByin interfaceXOrderingSequence<E>- Specified by:
shiftByin interfaceXSortableSequence<E>- Overrides:
shiftByin classSubListAccessor<E>- Parameters:
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.- Returns:
- self
-