public interface XGettingEnum<E> extends XGettingSet<E>, XGettingSequence<E>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XGettingEnum.Creator<E> |
XGettingSequence.Factory<E>Copyable.StaticXIterable.Executor<E>| Modifier and Type | Method and Description |
|---|---|
XGettingEnum<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.
|
XImmutableEnum<E> |
immure()
Provides an instance of an immutable collection type with equal behavior and data as this instance.
|
<P extends Consumer<? super E>> |
iterate(P procedure)
Executes the given procedure for each element of the
XIterable
until all elements have been processed or the action throws an
exception. |
XGettingEnum<E> |
range(long lowIndex,
long highIndex) |
XGettingEnum<E> |
toReversed()
Creates a new
XGettingSequence with the reversed order of elements. |
XGettingEnum<E> |
view()
Creates a view of this collection and returns it.
|
XGettingEnum<E> |
view(long lowIndex,
long highIndex)
Creates a sub-view of this collection and returns it.
|
at, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scanapplies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, hashCode, hasVolatileElements, intersect, intSize, iterator, join, max, min, nullContained, old, search, seek, size, toArray, toArray, unionforEach, spliteratorisFull, maximumCapacity, remainingCapacitynullAllowediterateIndexedXImmutableEnum<E> immure()
If this instance already is of an immutable collection type, it returns itself.
immure in interface XGettingCollection<E>immure in interface XGettingSequence<E>immure in interface XGettingSet<E>XGettingEnum<E> copy()
XGettingCollectioncopy in interface Copyablecopy in interface XGettingCollection<E>copy in interface XGettingSequence<E>copy in interface XGettingSet<E>XGettingEnum<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 XGettingSequence<E>XGettingEnum<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 XGettingCollection<E>view in interface XGettingSequence<E>XGettingEnum<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 XGettingSequence<E>lowIndex - defines lower boundary for the view of the collection.highIndex - defines higher boundary for the view of the collection.XGettingEnum<E> range(long lowIndex, long highIndex)
range in interface XGettingSequence<E><P extends Consumer<? super E>> P iterate(P procedure)
XIterableXIterable
until all elements have been processed or the action throws an
exception. Unless otherwise specified by the implementing class,
procedures are performed in the order of iteration (if an iteration order
is specified). Exceptions thrown by the procedure are relayed to the
caller.Iterable.forEach(Consumer).Copyright © 2022 MicroStream Software. All rights reserved.