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 interface
XSettingList.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 of whether or not a slot isnull
.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 newXGettingSequence
with the reversed order of elements.Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowed
Methods 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, union
Methods inherited from interface one.microstream.collections.types.XGettingList
immure, listIterator, listIterator, old, view, view
Methods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan
Methods inherited from interface one.microstream.collections.types.XReplacingBag
replace, replace, replaceAll, replaceOne, replaceOne, substitute
Methods inherited from interface one.microstream.collections.types.XSettingSequence
set, setFirst, setGet, setLast
Methods 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 of whether or not a slot isnull
.- 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:
setAll
in interfaceXSettingSequence<E>
-
set
- Specified by:
set
in interfaceXSettingSequence<E>
-
set
- Specified by:
set
in interfaceXSettingSequence<E>
-
swap
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
swap
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
reverse
XSettingList<E> reverse()Description copied from interface:XSortableSequence
Reverses 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:
reverse
in interfaceXOrderingSequence<E>
- Specified by:
reverse
in interfaceXSettingSequence<E>
- Specified by:
reverse
in interfaceXSortableSequence<E>
- Returns:
- this
-
sort
Description copied from interface:Sortable
Sorts this collection according to the given comparator and returns itself.- Specified by:
sort
in interfaceSortable<E>
- Specified by:
sort
in interfaceXSettingSequence<E>
- Specified by:
sort
in interfaceXSortableSequence<E>
- Parameters:
comparator
- to sort this collection- Returns:
- this
-
copy
XSettingList<E> copy()Description copied from interface:XGettingCollection
Creates 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:
copy
in interfaceCopyable
- Specified by:
copy
in interfaceXGettingBag<E>
- Specified by:
copy
in interfaceXGettingCollection<E>
- Specified by:
copy
in interfaceXGettingList<E>
- Specified by:
copy
in interfaceXGettingSequence<E>
- Specified by:
copy
in interfaceXReplacingBag<E>
- Specified by:
copy
in interfaceXSettingSequence<E>
- Specified by:
copy
in interfaceXSortableSequence<E>
- Returns:
- a copy of this list
-
toReversed
XSettingList<E> toReversed()Description copied from interface:XSortableSequence
Creates a newXGettingSequence
with the reversed order of elements.This method creates a new collection and does not change the existing collection.
Unlike the
XSortableSequence.reverse()
method, this method creates a new collection and does not change the existing collection.- Specified by:
toReversed
in interfaceXGettingList<E>
- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Specified by:
toReversed
in interfaceXSettingSequence<E>
- Specified by:
toReversed
in interfaceXSortableSequence<E>
- Returns:
- New copy of the collection
-
range
- Specified by:
range
in interfaceXGettingList<E>
- Specified by:
range
in interfaceXGettingSequence<E>
- Specified by:
range
in interfaceXSettingSequence<E>
-