public interface XImmutableList<E> extends XImmutableSequence<E>, XImmutableBag<E>, XGettingList<E>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XImmutableList.Factory<E> |
XGettingCollection.Creator<E>XIterable.Executor<E>Copyable.Static| Modifier and Type | Method and Description |
|---|---|
XImmutableList<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.
|
XImmutableList<E> |
immure()
Always returns the already immutable collection instance itself
|
XImmutableList<E> |
range(long fromIndex,
long toIndex) |
XImmutableList<E> |
toReversed()
Creates a new
XGettingSequence with the reversed order of elements. |
XImmutableList<E> |
view()
Creates a view of this collection and returns it.
|
XImmutableList<E> |
view(long lowIndex,
long highIndex)
Creates a sub-view of this collection and returns it.
|
Builder, Builderequals, hashCodelistIterator, listIterator, oldat, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scaniterateIndexedapplies, 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, unionforEach, spliteratorisFull, maximumCapacity, remainingCapacitynullAllowedXImmutableList<E> copy()
XGettingCollectioncopy in interface Copyablecopy in interface XGettingBag<E>copy in interface XGettingCollection<E>copy in interface XGettingList<E>copy in interface XGettingSequence<E>copy in interface XImmutableBag<E>copy in interface XImmutableCollection<E>copy in interface XImmutableSequence<E>XImmutableList<E> immure()
For spawning a copy of the collection instance, see XImmutableCollection.copy()
immure in interface XGettingBag<E>immure in interface XGettingCollection<E>immure in interface XGettingList<E>immure in interface XGettingSequence<E>immure in interface XImmutableBag<E>immure in interface XImmutableCollection<E>immure in interface XImmutableSequence<E>XImmutableCollection.copy()XImmutableList<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 XGettingList<E>toReversed in interface XGettingSequence<E>toReversed in interface XImmutableSequence<E>XImmutableList<E> range(long fromIndex, long toIndex)
range in interface XGettingList<E>range in interface XGettingSequence<E>XImmutableList<E> view()
XGettingCollection
A view is different from immutable collection (XGettingCollection.immure())
in the way, that changes in this collection are still affecting the view.
The immutable collection on the other hand has no reference to this collection
and changes therefore do not affect the immutable collection.
view in interface XGettingBag<E>view in interface XGettingCollection<E>view in interface XGettingList<E>view in interface XGettingSequence<E>XImmutableList<E> view(long lowIndex, long highIndex)
XGettingSequence
A view is different from immutable collection (XGettingCollection.immure())
in the way, that changes in this collection are still affecting the view.
The immutable collection on the other hand has no reference to this collection
and changes therefore do not affect the immutable collection.
view in interface XGettingList<E>view in interface XGettingSequence<E>lowIndex - defines lower boundary for the view of the collection.highIndex - defines higher boundary for the view of the collection.Copyright © 2022 MicroStream Software. All rights reserved.