Interface XSettingEnum<E>
- All Superinterfaces:
CapacityCarrying,Copyable,ExtendedCollection<E>,ExtendedSequence<E>,Iterable<E>,ReleasingCollection<E>,Sized,Sortable<E>,XGettingCollection<E>,XGettingEnum<E>,XGettingSequence<E>,XGettingSet<E>,XIndexIterable<E>,XIterable<E>,XJoinable<E>,XOrderingEnum<E>,XOrderingSequence<E>,XSettingSequence<E>,XSortableEnum<E>,XSortableSequence<E>
- All Known Subinterfaces:
XDecreasingEnum<E>,XEnum<E>,XTable<K,V>,XTable.Keys<K,V>
- All Known Implementing Classes:
EqHashEnum,EqHashTable,EqHashTable.Keys,HashEnum,HashTable,HashTable.Keys,Single
public interface XSettingEnum<E> extends XSortableEnum<E>, XSettingSequence<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXSettingEnum.Creator<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> -
Method Summary
Modifier and Type Method Description XSettingEnum<E>copy()Creates a true copy of this list which references the same elements in the same order as this list does at the time the method is called.XSettingEnum<E>range(long fromIndex, long toIndex)XSettingEnum<E>reverse()Reverses the order of its own elements and returns itself.XSettingEnum<E>set(long index, E[] elements, int offset, int length)XSettingEnum<E>set(long index, XGettingSequence<? extends E> elements, long offset, long length)XSettingEnum<E>setAll(long index, E... elements)voidsetFirst(E element)EsetGet(long index, E element)voidsetLast(E element)XSettingEnum<E>sort(Comparator<? super E> comparator)Sorts this collection according to the given comparator and returns itself.XSettingEnum<E>swap(long indexA, long indexB)XSettingEnum<E>swap(long indexA, long indexB, long length)XSettingEnum<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
immure, iterate, view, viewMethods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, immure, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scanMethods inherited from interface one.microstream.collections.types.XSortableEnum
shiftBy, shiftBy, shiftTo, shiftTo
-
Method Details
-
setGet
- Specified by:
setGetin interfaceXSettingSequence<E>
-
setFirst
- Specified by:
setFirstin interfaceXSettingSequence<E>
-
setLast
- Specified by:
setLastin interfaceXSettingSequence<E>
-
setAll
- Specified by:
setAllin interfaceXSettingSequence<E>
-
set
- Specified by:
setin interfaceXSettingSequence<E>
-
set
- Specified by:
setin interfaceXSettingSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingEnum<E>- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableEnum<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingEnum<E>- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableEnum<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
reverse
XSettingEnum<E> reverse()Description copied from interface:XSortableSequenceReverses the order of its own elements and returns itself.Unlike the
XSortableSequence.toReversed()method, this method does not create a new collection, but changes the order of its own elements.- Specified by:
reversein interfaceXOrderingEnum<E>- Specified by:
reversein interfaceXOrderingSequence<E>- Specified by:
reversein interfaceXSettingSequence<E>- Specified by:
reversein interfaceXSortableEnum<E>- Specified by:
reversein interfaceXSortableSequence<E>- Returns:
- this
-
sort
Description copied from interface:SortableSorts this collection according to the given comparator and returns itself.- Specified by:
sortin interfaceSortable<E>- Specified by:
sortin interfaceXSettingSequence<E>- Specified by:
sortin interfaceXSortableEnum<E>- Specified by:
sortin interfaceXSortableSequence<E>- Parameters:
comparator- to sort this collection- Returns:
- this
-
copy
XSettingEnum<E> copy()Description copied from interface:XGettingSequenceCreates a true copy of this list which references the same elements in the same order as this list does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned list is the same as of this list if possible (i.e.: a SubList can not meaningful return a true copy that references its elements but still is a SubList)- 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 interfaceXSettingSequence<E>- Specified by:
copyin interfaceXSortableEnum<E>- Specified by:
copyin interfaceXSortableSequence<E>- Returns:
- a copy of this list
-
toReversed
XSettingEnum<E> toReversed()Description copied from interface:XSortableSequenceCreates a newXGettingSequencewith the reversed order of elements.This method creates a new collection and does not change the existing collection.
Unlike the
XSortableSequence.reverse()method, 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 interfaceXSettingSequence<E>- Specified by:
toReversedin interfaceXSortableEnum<E>- Specified by:
toReversedin interfaceXSortableSequence<E>- Returns:
- New copy of the collection
-
range
- Specified by:
rangein interfaceXGettingEnum<E>- Specified by:
rangein interfaceXGettingSequence<E>- Specified by:
rangein interfaceXSettingSequence<E>
-