Interface XImmutableList<E>
-
- All Superinterfaces:
CapacityCarrying
,Copyable
,ExtendedBag<E>
,ExtendedCollection<E>
,ExtendedList<E>
,ExtendedSequence<E>
,HashImmutable
,Immutable
,Iterable<E>
,Sized
,ThreadSafe
,XGettingBag<E>
,XGettingCollection<E>
,XGettingList<E>
,XGettingSequence<E>
,XImmutableBag<E>
,XImmutableCollection<E>
,XImmutableSequence<E>
,XIndexIterable<E>
,XIterable<E>
,XJoinable<E>
- All Known Subinterfaces:
XImmutableTable.Values<K,V>
- All Known Implementing Classes:
Constant
,ConstHashTable.Values
,ConstList
,Empty
,EqConstHashTable.Values
,EqConstList
,LinkingReferencing.Default
public interface XImmutableList<E> extends XImmutableSequence<E>, XImmutableBag<E>, XGettingList<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XImmutableList.Factory<E>
-
Nested classes/interfaces inherited from interface one.microstream.typing.Copyable
Copyable.Static
-
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.XIterable
XIterable.Executor<E>
-
-
Method Summary
Modifier and Type Method 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 itselfXImmutableList<E>
range(long fromIndex, long toIndex)
XImmutableList<E>
toReversed()
XImmutableList<E>
view()
XImmutableList<E>
view(long lowIndex, long highIndex)
-
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.hashing.HashImmutable
equals, hashCode
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
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
listIterator, listIterator, old
-
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.XIndexIterable
iterateIndexed
-
-
-
-
Method Detail
-
copy
XImmutableList<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 interfaceXImmutableBag<E>
- Specified by:
copy
in interfaceXImmutableCollection<E>
- Specified by:
copy
in interfaceXImmutableSequence<E>
- Returns:
- a copy of this list
-
immure
XImmutableList<E> immure()
Always returns the already immutable collection instance itselfFor spawning a copy of the collection instance, see
XImmutableCollection.copy()
- Specified by:
immure
in interfaceXGettingBag<E>
- Specified by:
immure
in interfaceXGettingCollection<E>
- Specified by:
immure
in interfaceXGettingList<E>
- Specified by:
immure
in interfaceXGettingSequence<E>
- Specified by:
immure
in interfaceXImmutableBag<E>
- Specified by:
immure
in interfaceXImmutableCollection<E>
- Specified by:
immure
in interfaceXImmutableSequence<E>
- Returns:
- a reference to the instance itself.
- See Also:
XImmutableCollection.copy()
-
toReversed
XImmutableList<E> toReversed()
- Specified by:
toReversed
in interfaceXGettingList<E>
- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Specified by:
toReversed
in interfaceXImmutableSequence<E>
-
range
XImmutableList<E> range(long fromIndex, long toIndex)
- Specified by:
range
in interfaceXGettingList<E>
- Specified by:
range
in interfaceXGettingSequence<E>
-
view
XImmutableList<E> view()
- Specified by:
view
in interfaceXGettingBag<E>
- Specified by:
view
in interfaceXGettingCollection<E>
- Specified by:
view
in interfaceXGettingList<E>
- Specified by:
view
in interfaceXGettingSequence<E>
-
view
XImmutableList<E> view(long lowIndex, long highIndex)
- Specified by:
view
in interfaceXGettingList<E>
- Specified by:
view
in interfaceXGettingSequence<E>
-
-