Interface XBasicEnum<E>
- Type Parameters:
E-
- All Superinterfaces:
CapacityCarrying,CapacityExtendable,Clearable,ConsolidatableCollection,Consumer<E>,Copyable,ExtendedCollection<E>,ExtendedSequence<E>,Iterable<E>,OptimizableCollection,Processable<E>,ReleasingCollection<E>,Sized,Truncateable,XAddGetCollection<E>,XAddGetSet<E>,XAddingCollection<E>,XAddingEnum<E>,XAddingSequence<E>,XAddingSet<E>,XBasicSequence<E>,XCollection<E>,XGettingCollection<E>,XGettingEnum<E>,XGettingSequence<E>,XGettingSet<E>,XIndexIterable<E>,XIterable<E>,XJoinable<E>,XProcessingCollection<E>,XProcessingEnum<E>,XProcessingSequence<E>,XProcessingSet<E>,XPutGetCollection<E>,XPutGetEnum<E>,XPutGetSequence<E>,XPutGetSet<E>,XPuttingCollection<E>,XPuttingEnum<E>,XPuttingSequence<E>,XPuttingSet<E>,XRemovingCollection<E>,XRemovingEnum<E>,XRemovingSequence<E>,XRemovingSet<E>,XSet<E>
- All Known Subinterfaces:
XBasicTable<K,V>,XBasicTable.Keys<K,V>,XChart<K,V>,XChart.Keys<K,V>,XEnum<E>,XRank<E>,XTable<K,V>,XTable.Keys<K,V>
- All Known Implementing Classes:
EqHashEnum,EqHashTable,EqHashTable.Keys,HashEnum,HashTable,HashTable.Keys,Single
public interface XBasicEnum<E> extends XSet<E>, XBasicSequence<E>, XPutGetEnum<E>, XProcessingEnum<E>
Intermediate list type providing getting, adding, removing concerns to act as a common super type for
XList and XLadder. This is necessary because XLadder cannot provide
the otherwise typical list concerns like inserting, ordering, setting due to the limitations of the characteristic
of being always sorted.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXBasicEnum.Creator<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XBasicSequence
XBasicSequence.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.XProcessingSequence
XProcessingSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingSet
XProcessingSet.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XPutGetSequence
XPutGetSequence.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XPutGetSet
XPutGetSet.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XRemovingEnum
XRemovingEnum.Factory<E>Nested classes/interfaces inherited from interface one.microstream.collections.types.XSet
XSet.Factory<E> -
Method Summary
Modifier and Type Method Description XBasicEnum<E>addAll(E... elements)XBasicEnum<E>addAll(E[] elements, int srcStartIndex, int srcLength)XBasicEnum<E>addAll(XGettingCollection<? extends E> elements)XBasicEnum<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.XBasicEnum<E>putAll(E... elements)Adds the specified elements to this collection if it is not already present (optional operation).XBasicEnum<E>putAll(E[] elements, int srcStartIndex, int srcLength)Adds the specified elements to this collection if it is not already present (optional operation).
Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.XBasicEnum<E>putAll(XGettingCollection<? extends E> elements)Adds the specified elements to this collection if it is not already present (optional operation).XBasicEnum<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.CapacityExtendable
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityMethods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowedMethods inherited from interface one.microstream.collections.types.XAddingCollection
accept, add, nullAddMethods 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, scanMethods inherited from interface one.microstream.collections.types.XProcessingCollection
fetch, iterate, moveTo, pinch, removeBy, removeDuplicates, retrieve, retrieveByMethods inherited from interface one.microstream.collections.types.XProcessingSequence
moveSelection, pick, pop, removeAt, viewMethods inherited from interface one.microstream.collections.types.XRemovingCollection
clear, consolidate, nullRemove, optimize, remove, removeAll, removeDuplicates, removeOne, retainAll, truncateMethods inherited from interface one.microstream.collections.types.XRemovingSequence
removeRange, removeSelection, retainRange
-
Method Details
-
putAll
Description copied from interface:XPuttingCollectionAdds the specified elements to this collection if it is not already present (optional operation).- Specified by:
putAllin interfaceXBasicSequence<E>- Specified by:
putAllin interfaceXCollection<E>- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPutGetEnum<E>- Specified by:
putAllin interfaceXPutGetSequence<E>- Specified by:
putAllin interfaceXPutGetSet<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingEnum<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Specified by:
putAllin interfaceXPuttingSet<E>- Specified by:
putAllin interfaceXSet<E>- Parameters:
elements- to add- Returns:
- this
-
putAll
Description copied from interface:XPuttingCollectionAdds the specified elements to this collection if it is not already present (optional operation).
Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.- Specified by:
putAllin interfaceXBasicSequence<E>- Specified by:
putAllin interfaceXCollection<E>- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPutGetEnum<E>- Specified by:
putAllin interfaceXPutGetSequence<E>- Specified by:
putAllin interfaceXPutGetSet<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingEnum<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Specified by:
putAllin interfaceXPuttingSet<E>- Specified by:
putAllin interfaceXSet<E>- Parameters:
elements- to addsrcStartIndex- start index of elements-array to add to collectionsrcLength- length of elements-array to add to collection- Returns:
- this
-
putAll
Description copied from interface:XPuttingCollectionAdds the specified elements to this collection if it is not already present (optional operation).- Specified by:
putAllin interfaceXBasicSequence<E>- Specified by:
putAllin interfaceXCollection<E>- Specified by:
putAllin interfaceXPutGetCollection<E>- Specified by:
putAllin interfaceXPutGetEnum<E>- Specified by:
putAllin interfaceXPutGetSequence<E>- Specified by:
putAllin interfaceXPutGetSet<E>- Specified by:
putAllin interfaceXPuttingCollection<E>- Specified by:
putAllin interfaceXPuttingEnum<E>- Specified by:
putAllin interfaceXPuttingSequence<E>- Specified by:
putAllin interfaceXPuttingSet<E>- Specified by:
putAllin interfaceXSet<E>- Parameters:
elements- to add- Returns:
- this
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddGetSet<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingEnum<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXAddingSet<E>- Specified by:
addAllin interfaceXBasicSequence<E>- Specified by:
addAllin interfaceXCollection<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPutGetEnum<E>- Specified by:
addAllin interfaceXPutGetSequence<E>- Specified by:
addAllin interfaceXPutGetSet<E>- Specified by:
addAllin interfaceXPuttingEnum<E>- Specified by:
addAllin interfaceXPuttingSet<E>- Specified by:
addAllin interfaceXSet<E>
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddGetSet<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingEnum<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXAddingSet<E>- Specified by:
addAllin interfaceXBasicSequence<E>- Specified by:
addAllin interfaceXCollection<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPutGetEnum<E>- Specified by:
addAllin interfaceXPutGetSequence<E>- Specified by:
addAllin interfaceXPutGetSet<E>- Specified by:
addAllin interfaceXPuttingEnum<E>- Specified by:
addAllin interfaceXPuttingSet<E>- Specified by:
addAllin interfaceXSet<E>
-
addAll
- Specified by:
addAllin interfaceXAddGetCollection<E>- Specified by:
addAllin interfaceXAddGetSet<E>- Specified by:
addAllin interfaceXAddingCollection<E>- Specified by:
addAllin interfaceXAddingEnum<E>- Specified by:
addAllin interfaceXAddingSequence<E>- Specified by:
addAllin interfaceXAddingSet<E>- Specified by:
addAllin interfaceXBasicSequence<E>- Specified by:
addAllin interfaceXCollection<E>- Specified by:
addAllin interfaceXPutGetCollection<E>- Specified by:
addAllin interfaceXPutGetEnum<E>- Specified by:
addAllin interfaceXPutGetSequence<E>- Specified by:
addAllin interfaceXPutGetSet<E>- Specified by:
addAllin interfaceXPuttingEnum<E>- Specified by:
addAllin interfaceXPuttingSet<E>- Specified by:
addAllin interfaceXSet<E>
-
copy
XBasicEnum<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 interfaceXAddGetCollection<E>- Specified by:
copyin interfaceXAddGetSet<E>- Specified by:
copyin interfaceXBasicSequence<E>- Specified by:
copyin interfaceXCollection<E>- Specified by:
copyin interfaceXGettingCollection<E>- Specified by:
copyin interfaceXGettingEnum<E>- Specified by:
copyin interfaceXGettingSequence<E>- Specified by:
copyin interfaceXGettingSet<E>- Specified by:
copyin interfaceXProcessingEnum<E>- Specified by:
copyin interfaceXProcessingSet<E>- Specified by:
copyin interfaceXPutGetCollection<E>- Specified by:
copyin interfaceXPutGetEnum<E>- Specified by:
copyin interfaceXPutGetSequence<E>- Specified by:
copyin interfaceXPutGetSet<E>- Specified by:
copyin interfaceXSet<E>- Returns:
- a copy of this list
-
toReversed
XBasicEnum<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 interfaceXBasicSequence<E>- Specified by:
toReversedin interfaceXGettingEnum<E>- Specified by:
toReversedin interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXProcessingEnum<E>- Specified by:
toReversedin interfaceXProcessingSequence<E>- Specified by:
toReversedin interfaceXPutGetEnum<E>- Specified by:
toReversedin interfaceXPutGetSequence<E>- Returns:
- New copy of the collection
-
immure
XImmutableEnum<E> immure()Description copied from interface:XGettingCollectionProvides an instance of an immutable collection type with equal behavior and data as this instance.If this instance already is of an immutable collection type, it returns itself.
- Specified by:
immurein interfaceXGettingCollection<E>- Specified by:
immurein interfaceXGettingEnum<E>- Specified by:
immurein interfaceXGettingSequence<E>- Specified by:
immurein interfaceXGettingSet<E>- Specified by:
immurein interfaceXProcessingSet<E>- Returns:
- an immutable copy of this collection instance.
-