Package one.microstream.collections
Class SubListAccessor<E>
java.lang.Object
one.microstream.collections.SubListView<E>
one.microstream.collections.SubListAccessor<E>
- All Implemented Interfaces:
Iterable<E>
,CapacityCarrying
,ExtendedBag<E>
,ExtendedCollection<E>
,ExtendedList<E>
,ExtendedSequence<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>
,XSettingList<E>
,XSettingSequence<E>
,XSortableSequence<E>
,Copyable
- Direct Known Subclasses:
SubList
public class SubListAccessor<E> extends SubListView<E> implements XSettingList<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.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.XIterable
XIterable.Executor<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
Constructors Constructor Description SubListAccessor(XSettingList<E> list, long fromIndex, long toIndex)
-
Method Summary
Modifier and Type Method Description SubListAccessor<E>
copy()
Creates a true copy of this list which references th same elements in the same order as this list does at the time the method is called.SubListAccessor<E>
fill(long offset, long length, E element)
one.microstream.collections.SubListAccessor.OldSubListAccessor<E>
old()
SubListAccessor<E>
range(long fromIndex, long toIndex)
long
replace(E element, E replacement)
long
replace(Predicate<? super E> predicate, E substitute)
long
replaceAll(XGettingCollection<? extends E> elements, E replacement)
boolean
replaceOne(E element, E replacement)
boolean
replaceOne(Predicate<? super E> predicate, E substitute)
SubListAccessor<E>
reverse()
boolean
set(long index, E element)
SubListAccessor<E>
set(long offset, E[] src, int srcIndex, int srcLength)
SubListAccessor<E>
set(long offset, XGettingSequence<? extends E> elements, long elementsOffset, long elementsLength)
SubListAccessor<E>
setAll(long offset, E... elements)
void
setFirst(E element)
E
setGet(long index, E element)
void
setLast(E element)
SubListAccessor<E>
shiftBy(long sourceIndex, long distance)
SubListAccessor<E>
shiftBy(long sourceIndex, long distance, long length)
SubListAccessor<E>
shiftTo(long sourceIndex, long targetIndex)
SubListAccessor<E>
shiftTo(long sourceIndex, long targetIndex, long length)
SubListAccessor<E>
sort(Comparator<? super E> comparator)
long
substitute(Function<? super E,? extends E> mapper)
long
substitute(Predicate<? super E> predicate, Function<E,E> mapper)
SubListAccessor<E>
swap(long indexA, long indexB)
SubListAccessor<E>
swap(long indexA, long indexB, long length)
SubListAccessor<E>
toReversed()
SubListView<E>
view(long fromIndex, long toIndex)
Methods 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, size, toArray, toArray, union, view
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, 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
-
Constructor Details
-
Method Details
-
replace
- Specified by:
replace
in interfaceXReplacingBag<E>
-
replaceOne
- Specified by:
replaceOne
in interfaceXReplacingBag<E>
-
substitute
- Specified by:
substitute
in interfaceXReplacingCollection<E>
-
substitute
- Specified by:
substitute
in interfaceXReplacingBag<E>
-
range
- Specified by:
range
in interfaceXGettingList<E>
- Specified by:
range
in interfaceXGettingSequence<E>
- Specified by:
range
in interfaceXSettingList<E>
- Specified by:
range
in interfaceXSettingSequence<E>
- Overrides:
range
in classSubListView<E>
-
fill
- Specified by:
fill
in interfaceXSettingList<E>
-
replaceOne
- Specified by:
replaceOne
in interfaceXReplacingBag<E>
-
reverse
- Specified by:
reverse
in interfaceXOrderingSequence<E>
- Specified by:
reverse
in interfaceXSettingList<E>
- Specified by:
reverse
in interfaceXSettingSequence<E>
- Specified by:
reverse
in interfaceXSortableSequence<E>
-
setAll
- Specified by:
setAll
in interfaceXSettingList<E>
- Specified by:
setAll
in interfaceXSettingSequence<E>
-
set
- Specified by:
set
in interfaceXSettingList<E>
- Specified by:
set
in interfaceXSettingSequence<E>
-
set
public SubListAccessor<E> set(long offset, XGettingSequence<? extends E> elements, long elementsOffset, long elementsLength)- Specified by:
set
in interfaceXSettingList<E>
- Specified by:
set
in interfaceXSettingSequence<E>
-
setFirst
- Specified by:
setFirst
in interfaceXSettingSequence<E>
-
setLast
- Specified by:
setLast
in interfaceXSettingSequence<E>
-
sort
- Specified by:
sort
in interfaceSortable<E>
- Specified by:
sort
in interfaceXSettingList<E>
- Specified by:
sort
in interfaceXSettingSequence<E>
- Specified by:
sort
in interfaceXSortableSequence<E>
-
shiftTo
- Specified by:
shiftTo
in interfaceXOrderingSequence<E>
- Specified by:
shiftTo
in interfaceXSortableSequence<E>
-
shiftTo
- Specified by:
shiftTo
in interfaceXOrderingSequence<E>
- Specified by:
shiftTo
in interfaceXSortableSequence<E>
-
shiftBy
- Specified by:
shiftBy
in interfaceXOrderingSequence<E>
- Specified by:
shiftBy
in interfaceXSortableSequence<E>
-
shiftBy
- Specified by:
shiftBy
in interfaceXOrderingSequence<E>
- Specified by:
shiftBy
in interfaceXSortableSequence<E>
-
swap
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingList<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
swap
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingList<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
replace
- Specified by:
replace
in interfaceXReplacingBag<E>
-
replaceAll
- Specified by:
replaceAll
in interfaceXReplacingBag<E>
-
set
- Specified by:
set
in interfaceXSettingSequence<E>
-
setGet
- Specified by:
setGet
in interfaceXSettingSequence<E>
-
view
- Specified by:
view
in interfaceXGettingList<E>
- Specified by:
view
in interfaceXGettingSequence<E>
- Overrides:
view
in classSubListView<E>
-
toReversed
- Specified by:
toReversed
in interfaceXGettingList<E>
- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Specified by:
toReversed
in interfaceXSettingList<E>
- Specified by:
toReversed
in interfaceXSettingSequence<E>
- Specified by:
toReversed
in interfaceXSortableSequence<E>
- Overrides:
toReversed
in classSubListView<E>
-
copy
Description copied from interface:XGettingSequence
Creates a true copy of this list which references th 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:
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 interfaceXSettingList<E>
- Specified by:
copy
in interfaceXSettingSequence<E>
- Specified by:
copy
in interfaceXSortableSequence<E>
- Overrides:
copy
in classSubListView<E>
- Returns:
- a copy of this list
-
old
- Specified by:
old
in interfaceXGettingCollection<E>
- Specified by:
old
in interfaceXGettingList<E>
- Overrides:
old
in classSubListView<E>
-