Interface XSettingList<E>
- All Superinterfaces:
CapacityCarrying,Copyable,ExtendedBag<E>,ExtendedCollection<E>,ExtendedList<E>,ExtendedSequence<E>,Iterable<E>,ReleasingCollection<E>,Sized,Sortable<E>,XGettingBag<E>,XGettingCollection<E>,XGettingList<E>,XGettingSequence<E>,XIndexIterable<E>,XIterable<E>,XJoinable<E>,XOrderingSequence<E>,XReplacingBag<E>,XReplacingCollection<E>,XSettingSequence<E>,XSortableSequence<E>
- All Known Subinterfaces:
XBasicTable.Values<K,V>,XChart.Values<K,V>,XDecreasingList<E>,XIncreasingList<E>,XList<E>,XReference<E>,XTable.Values<K,V>
- All Known Implementing Classes:
ArrayAccessor,ArrayCollector,BulkList,EqBulkList,EqHashTable.Values,FixedList,HashTable.Values,LimitList,LinkReference.Default,ListAccessor,LockedList,Single,Singleton,SubList,SubListAccessor,SubListProcessor,SynchList
public interface XSettingList<E> extends XReplacingBag<E>, XSettingSequence<E>, XGettingList<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXSettingList.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.XIterable
XIterable.Executor<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XReplacingBag
XReplacingBag.Factory<E> -
Method Summary
Modifier and Type Method 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 whether a slot isnullor not.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 newXGettingSequencewith the reversed order of elements.Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacityMethods 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, old, 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, setLastMethods inherited from interface one.microstream.collections.types.XSortableSequence
shiftBy, shiftBy, shiftTo, shiftTo
-
Method Details
-
fill
Fills all slots from the offset to the offset+length with the given element, regardless whether a slot isnullor not.- 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
-
setAll
- Specified by:
setAllin interfaceXSettingSequence<E>
-
set
- Specified by:
setin interfaceXSettingSequence<E>
-
set
- Specified by:
setin interfaceXSettingSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
reverse
XSettingList<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 interfaceXOrderingSequence<E>- Specified by:
reversein interfaceXSettingSequence<E>- Specified by:
reversein interfaceXSortableSequence<E>- Returns:
- this
-
sort
Description copied from interface:SortableSorts this collection according to the given comparator and returns itself.- Specified by:
sortin interfaceSortable<E>- Specified by:
sortin interfaceXSettingSequence<E>- Specified by:
sortin interfaceXSortableSequence<E>- Parameters:
comparator- to sort this collection- Returns:
- this
-
copy
XSettingList<E> copy()Description copied from interface:XGettingCollectionCreates a true copy of this collection which references the same elements as this collection does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned set is the same as of this list if possible.- Specified by:
copyin interfaceCopyable- Specified by:
copyin interfaceXGettingBag<E>- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXGettingList<E>- Specified by:
copyin interfaceXGettingSequence<E>- Specified by:
copyin interfaceXReplacingBag<E>- Specified by:
copyin interfaceXSettingSequence<E>- Specified by:
copyin interfaceXSortableSequence<E>- Returns:
- a copy of this list
-
toReversed
XSettingList<E> toReversed()Description copied from interface:XSortableSequenceCreates a newXGettingSequencewith 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.- Specified by:
toReversedin interfaceXGettingList<E>- Specified by:
toReversedin interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXSettingSequence<E>- Specified by:
toReversedin interfaceXSortableSequence<E>- Returns:
- New copy of the collection
-
range
- Specified by:
rangein interfaceXGettingList<E>- Specified by:
rangein interfaceXGettingSequence<E>- Specified by:
rangein interfaceXSettingSequence<E>
-