Interface XImmutableEnum<E>
- All Superinterfaces:
CapacityCarrying,Copyable,ExtendedCollection<E>,ExtendedSequence<E>,HashImmutable,Immutable,Iterable<E>,Sized,ThreadSafe,XGettingCollection<E>,XGettingEnum<E>,XGettingSequence<E>,XGettingSet<E>,XImmutableCollection<E>,XImmutableSequence<E>,XImmutableSet<E>,XIndexIterable<E>,XIterable<E>,XJoinable<E>
- All Known Subinterfaces:
XImmutableTable<K,V>,XImmutableTable.Keys<K,V>
- All Known Implementing Classes:
Constant,ConstHashEnum,ConstHashTable,ConstHashTable.Keys,ConstLinearEnum,Empty,EmptyTable,EqConstHashEnum,EqConstHashTable,EqConstHashTable.Keys,LinkingReferencing.Default
public interface XImmutableEnum<E> extends XImmutableSequence<E>, XImmutableSet<E>, XGettingEnum<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXImmutableEnum.Factory<E>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.XGettingEnum
XGettingEnum.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XGettingSet
XGettingSet.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E> -
Method Summary
Modifier and Type Method Description XImmutableEnum<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()Always returns the already immutable collection instance itselfXImmutableEnum<E>toReversed()Creates a newXGettingSequencewith the reversed order of elements.Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacityMethods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowedMethods 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, old, search, seek, size, toArray, toArray, unionMethods inherited from interface one.microstream.collections.types.XGettingEnum
iterate, range, view, viewMethods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan
-
Method Details
-
copy
XImmutableEnum<E> copy()Description copied from interface:XGettingCollectionCreates 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:
copyin interfaceCopyable- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXGettingEnum<E>- Specified by:
copyin interfaceXGettingSequence<E>- Specified by:
copyin interfaceXGettingSet<E>- Specified by:
copyin interfaceXImmutableCollection<E>- Specified by:
copyin interfaceXImmutableSequence<E>- Specified by:
copyin interfaceXImmutableSet<E>- Returns:
- a copy of this list
-
immure
XImmutableEnum<E> immure()Always returns the already immutable collection instance itselfFor spawning a copy of the collection instance, see
XImmutableCollection.copy()- Specified by:
immurein interfaceXGettingCollection<E>- Specified by:
immurein interfaceXGettingEnum<E>- Specified by:
immurein interfaceXGettingSequence<E>- Specified by:
immurein interfaceXGettingSet<E>- Specified by:
immurein interfaceXImmutableCollection<E>- Specified by:
immurein interfaceXImmutableSequence<E>- Specified by:
immurein interfaceXImmutableSet<E>- Returns:
- a reference to the instance itself.
- See Also:
XImmutableCollection.copy()
-
toReversed
XImmutableEnum<E> toReversed()Description copied from interface:XGettingSequenceCreates a newXGettingSequencewith the reversed order of elements.This method creates a new collection and does not change the existing collection.
- Specified by:
toReversedin interfaceXGettingEnum<E>- Specified by:
toReversedin interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXImmutableSequence<E>- Returns:
- New copy of the collection
-