Interface XIncreasingEnum<E>
- All Superinterfaces:
CapacityCarrying
,CapacityExtendable
,Consumer<E>
,Copyable
,ExtendedCollection<E>
,ExtendedSequence<E>
,Iterable<E>
,OptimizableCollection
,ReleasingCollection<E>
,Sized
,Sortable<E>
,SortableProcedure<E>
,XAddingCollection<E>
,XAddingEnum<E>
,XAddingSequence<E>
,XAddingSet<E>
,XExpandingEnum<E>
,XExpandingSequence<E>
,XExtendingEnum<E>
,XExtendingSequence<E>
,XGettingCollection<E>
,XGettingEnum<E>
,XGettingSequence<E>
,XGettingSet<E>
,XIncreasingSequence<E>
,XIndexIterable<E>
,XInputtingEnum<E>
,XInputtingSequence<E>
,XInsertingEnum<E>
,XInsertingSequence<E>
,XIterable<E>
,XJoinable<E>
,XOrderingEnum<E>
,XOrderingSequence<E>
,XPrependingEnum<E>
,XPrependingSequence<E>
,XPreputtingEnum<E>
,XPreputtingSequence<E>
,XPuttingCollection<E>
,XPuttingEnum<E>
,XPuttingSequence<E>
,XPuttingSet<E>
,XSortableEnum<E>
,XSortableSequence<E>
- All Known Subinterfaces:
XEnum<E>
,XTable<K,V>
,XTable.Keys<K,V>
- All Known Implementing Classes:
EqHashEnum
,EqHashTable
,EqHashTable.Keys
,HashEnum
,HashTable
,HashTable.Keys
,Single
public interface XIncreasingEnum<E> extends XInputtingEnum<E>, XSortableEnum<E>, XIncreasingSequence<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
XIncreasingEnum.Factory<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIncreasingSequence
XIncreasingSequence.Creator<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XInputtingEnum
XInputtingEnum.Creator<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.XSortableEnum
XSortableEnum.Creator<E>
-
Method Summary
Modifier and Type Method Description XIncreasingEnum<E>
addAll(E... elements)
XIncreasingEnum<E>
addAll(E[] elements, int offset, int length)
XIncreasingEnum<E>
addAll(XGettingCollection<? extends E> elements)
XIncreasingEnum<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.XIncreasingEnum<E>
prependAll(E... elements)
XIncreasingEnum<E>
prependAll(E[] elements, int offset, int length)
XIncreasingEnum<E>
prependAll(XGettingCollection<? extends E> elements)
XIncreasingEnum<E>
preputAll(E... elements)
XIncreasingEnum<E>
preputAll(E[] elements, int offset, int length)
XIncreasingEnum<E>
preputAll(XGettingCollection<? extends E> elements)
XIncreasingEnum<E>
putAll(E... elements)
Adds the specified elements to this collection if it is not already present (optional operation).XIncreasingEnum<E>
putAll(E[] elements, int offset, int length)
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.XIncreasingEnum<E>
putAll(XGettingCollection<? extends E> elements)
Adds the specified elements to this collection if it is not already present (optional operation).XIncreasingEnum<E>
range(long fromIndex, long toIndex)
XIncreasingEnum<E>
reverse()
Reverses the order of its own elements and returns itself.XIncreasingEnum<E>
sort(Comparator<? super E> comparator)
Sorts this collection according to the given comparator and returns itself.XIncreasingEnum<E>
swap(long indexA, long indexB)
XIncreasingEnum<E>
swap(long indexA, long indexB, long length)
XIncreasingEnum<E>
toReversed()
Creates a newXGettingSequence
with the reversed order of elements.Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
Methods inherited from interface one.microstream.collections.interfaces.CapacityExtendable
currentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacity
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowed
Methods inherited from interface one.microstream.collections.interfaces.OptimizableCollection
optimize
Methods inherited from interface one.microstream.collections.types.XAddingCollection
accept, add, collector, nullAdd
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, old, search, seek, size, toArray, toArray, union
Methods inherited from interface one.microstream.collections.types.XGettingEnum
immure, iterate, view, view
Methods inherited from interface one.microstream.collections.types.XGettingSequence
at, copySelection, first, get, hasIndex, immure, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan
Methods inherited from interface one.microstream.collections.types.XInputtingSequence
input, inputAll, inputAll, inputAll, nullInput
Methods inherited from interface one.microstream.collections.types.XInsertingSequence
insert, insertAll, insertAll, insertAll, nullInsert
Methods inherited from interface one.microstream.collections.types.XPrependingSequence
nullPrepend, prepend
Methods inherited from interface one.microstream.collections.types.XPreputtingSequence
nullPreput, preput
Methods inherited from interface one.microstream.collections.types.XSortableEnum
shiftBy, shiftBy, shiftTo, shiftTo
-
Method Details
-
addAll
- Specified by:
addAll
in interfaceXAddingCollection<E>
- Specified by:
addAll
in interfaceXAddingEnum<E>
- Specified by:
addAll
in interfaceXAddingSequence<E>
- Specified by:
addAll
in interfaceXAddingSet<E>
- Specified by:
addAll
in interfaceXExpandingEnum<E>
- Specified by:
addAll
in interfaceXExpandingSequence<E>
- Specified by:
addAll
in interfaceXExtendingEnum<E>
- Specified by:
addAll
in interfaceXExtendingSequence<E>
- Specified by:
addAll
in interfaceXIncreasingSequence<E>
- Specified by:
addAll
in interfaceXInputtingEnum<E>
- Specified by:
addAll
in interfaceXInputtingSequence<E>
- Specified by:
addAll
in interfaceXInsertingEnum<E>
- Specified by:
addAll
in interfaceXInsertingSequence<E>
- Specified by:
addAll
in interfaceXPuttingEnum<E>
- Specified by:
addAll
in interfaceXPuttingSet<E>
-
addAll
- Specified by:
addAll
in interfaceXAddingCollection<E>
- Specified by:
addAll
in interfaceXAddingEnum<E>
- Specified by:
addAll
in interfaceXAddingSequence<E>
- Specified by:
addAll
in interfaceXAddingSet<E>
- Specified by:
addAll
in interfaceXExpandingEnum<E>
- Specified by:
addAll
in interfaceXExpandingSequence<E>
- Specified by:
addAll
in interfaceXExtendingEnum<E>
- Specified by:
addAll
in interfaceXExtendingSequence<E>
- Specified by:
addAll
in interfaceXIncreasingSequence<E>
- Specified by:
addAll
in interfaceXInputtingEnum<E>
- Specified by:
addAll
in interfaceXInputtingSequence<E>
- Specified by:
addAll
in interfaceXInsertingEnum<E>
- Specified by:
addAll
in interfaceXInsertingSequence<E>
- Specified by:
addAll
in interfaceXPuttingEnum<E>
- Specified by:
addAll
in interfaceXPuttingSet<E>
-
addAll
- Specified by:
addAll
in interfaceXAddingCollection<E>
- Specified by:
addAll
in interfaceXAddingEnum<E>
- Specified by:
addAll
in interfaceXAddingSequence<E>
- Specified by:
addAll
in interfaceXAddingSet<E>
- Specified by:
addAll
in interfaceXExpandingEnum<E>
- Specified by:
addAll
in interfaceXExpandingSequence<E>
- Specified by:
addAll
in interfaceXExtendingEnum<E>
- Specified by:
addAll
in interfaceXExtendingSequence<E>
- Specified by:
addAll
in interfaceXIncreasingSequence<E>
- Specified by:
addAll
in interfaceXInputtingEnum<E>
- Specified by:
addAll
in interfaceXInputtingSequence<E>
- Specified by:
addAll
in interfaceXInsertingEnum<E>
- Specified by:
addAll
in interfaceXInsertingSequence<E>
- Specified by:
addAll
in interfaceXPuttingEnum<E>
- Specified by:
addAll
in interfaceXPuttingSet<E>
-
putAll
Description copied from interface:XPuttingSet
Adds the specified elements to this collection if it is not already present (optional operation).In this implementation it overwrites equal, already contained elements.
- Specified by:
putAll
in interfaceXExpandingEnum<E>
- Specified by:
putAll
in interfaceXExpandingSequence<E>
- Specified by:
putAll
in interfaceXIncreasingSequence<E>
- Specified by:
putAll
in interfaceXInputtingEnum<E>
- Specified by:
putAll
in interfaceXInputtingSequence<E>
- Specified by:
putAll
in interfaceXPuttingCollection<E>
- Specified by:
putAll
in interfaceXPuttingEnum<E>
- Specified by:
putAll
in interfaceXPuttingSequence<E>
- Specified by:
putAll
in interfaceXPuttingSet<E>
- Parameters:
elements
- to add- Returns:
- this
-
putAll
Description copied from interface:XPuttingSet
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.In this implementation it overwrites equal, already contained elements.
- Specified by:
putAll
in interfaceXExpandingEnum<E>
- Specified by:
putAll
in interfaceXExpandingSequence<E>
- Specified by:
putAll
in interfaceXIncreasingSequence<E>
- Specified by:
putAll
in interfaceXInputtingEnum<E>
- Specified by:
putAll
in interfaceXInputtingSequence<E>
- Specified by:
putAll
in interfaceXPuttingCollection<E>
- Specified by:
putAll
in interfaceXPuttingEnum<E>
- Specified by:
putAll
in interfaceXPuttingSequence<E>
- Specified by:
putAll
in interfaceXPuttingSet<E>
- Parameters:
elements
- to addoffset
- start index of elements-array to add to collectionlength
- length of elements-array to add to collection- Returns:
- this
-
putAll
Description copied from interface:XPuttingSet
Adds the specified elements to this collection if it is not already present (optional operation).In this implementation it overwrites equal, already contained elements.
- Specified by:
putAll
in interfaceXExpandingEnum<E>
- Specified by:
putAll
in interfaceXExpandingSequence<E>
- Specified by:
putAll
in interfaceXIncreasingSequence<E>
- Specified by:
putAll
in interfaceXInputtingEnum<E>
- Specified by:
putAll
in interfaceXInputtingSequence<E>
- Specified by:
putAll
in interfaceXPuttingCollection<E>
- Specified by:
putAll
in interfaceXPuttingEnum<E>
- Specified by:
putAll
in interfaceXPuttingSequence<E>
- Specified by:
putAll
in interfaceXPuttingSet<E>
- Parameters:
elements
- to add- Returns:
- this
-
prependAll
- Specified by:
prependAll
in interfaceXExpandingEnum<E>
- Specified by:
prependAll
in interfaceXExpandingSequence<E>
- Specified by:
prependAll
in interfaceXExtendingEnum<E>
- Specified by:
prependAll
in interfaceXExtendingSequence<E>
- Specified by:
prependAll
in interfaceXIncreasingSequence<E>
- Specified by:
prependAll
in interfaceXInputtingEnum<E>
- Specified by:
prependAll
in interfaceXInputtingSequence<E>
- Specified by:
prependAll
in interfaceXInsertingEnum<E>
- Specified by:
prependAll
in interfaceXInsertingSequence<E>
- Specified by:
prependAll
in interfaceXPrependingEnum<E>
- Specified by:
prependAll
in interfaceXPrependingSequence<E>
- Specified by:
prependAll
in interfaceXPreputtingEnum<E>
- Specified by:
prependAll
in interfaceXPreputtingSequence<E>
-
prependAll
- Specified by:
prependAll
in interfaceXExpandingEnum<E>
- Specified by:
prependAll
in interfaceXExpandingSequence<E>
- Specified by:
prependAll
in interfaceXExtendingEnum<E>
- Specified by:
prependAll
in interfaceXExtendingSequence<E>
- Specified by:
prependAll
in interfaceXIncreasingSequence<E>
- Specified by:
prependAll
in interfaceXInputtingEnum<E>
- Specified by:
prependAll
in interfaceXInputtingSequence<E>
- Specified by:
prependAll
in interfaceXInsertingEnum<E>
- Specified by:
prependAll
in interfaceXInsertingSequence<E>
- Specified by:
prependAll
in interfaceXPrependingEnum<E>
- Specified by:
prependAll
in interfaceXPrependingSequence<E>
- Specified by:
prependAll
in interfaceXPreputtingEnum<E>
- Specified by:
prependAll
in interfaceXPreputtingSequence<E>
-
prependAll
- Specified by:
prependAll
in interfaceXExpandingEnum<E>
- Specified by:
prependAll
in interfaceXExpandingSequence<E>
- Specified by:
prependAll
in interfaceXExtendingEnum<E>
- Specified by:
prependAll
in interfaceXExtendingSequence<E>
- Specified by:
prependAll
in interfaceXIncreasingSequence<E>
- Specified by:
prependAll
in interfaceXInputtingEnum<E>
- Specified by:
prependAll
in interfaceXInputtingSequence<E>
- Specified by:
prependAll
in interfaceXInsertingEnum<E>
- Specified by:
prependAll
in interfaceXInsertingSequence<E>
- Specified by:
prependAll
in interfaceXPrependingEnum<E>
- Specified by:
prependAll
in interfaceXPrependingSequence<E>
- Specified by:
prependAll
in interfaceXPreputtingEnum<E>
- Specified by:
prependAll
in interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAll
in interfaceXExpandingEnum<E>
- Specified by:
preputAll
in interfaceXExpandingSequence<E>
- Specified by:
preputAll
in interfaceXIncreasingSequence<E>
- Specified by:
preputAll
in interfaceXInputtingEnum<E>
- Specified by:
preputAll
in interfaceXInputtingSequence<E>
- Specified by:
preputAll
in interfaceXPreputtingEnum<E>
- Specified by:
preputAll
in interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAll
in interfaceXExpandingEnum<E>
- Specified by:
preputAll
in interfaceXExpandingSequence<E>
- Specified by:
preputAll
in interfaceXIncreasingSequence<E>
- Specified by:
preputAll
in interfaceXInputtingEnum<E>
- Specified by:
preputAll
in interfaceXInputtingSequence<E>
- Specified by:
preputAll
in interfaceXPreputtingEnum<E>
- Specified by:
preputAll
in interfaceXPreputtingSequence<E>
-
preputAll
- Specified by:
preputAll
in interfaceXExpandingEnum<E>
- Specified by:
preputAll
in interfaceXExpandingSequence<E>
- Specified by:
preputAll
in interfaceXIncreasingSequence<E>
- Specified by:
preputAll
in interfaceXInputtingEnum<E>
- Specified by:
preputAll
in interfaceXInputtingSequence<E>
- Specified by:
preputAll
in interfaceXPreputtingEnum<E>
- Specified by:
preputAll
in interfaceXPreputtingSequence<E>
-
swap
- Specified by:
swap
in interfaceXIncreasingSequence<E>
- Specified by:
swap
in interfaceXOrderingEnum<E>
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSortableEnum<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
swap
- Specified by:
swap
in interfaceXIncreasingSequence<E>
- Specified by:
swap
in interfaceXOrderingEnum<E>
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSortableEnum<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
copy
XIncreasingEnum<E> copy()Description copied from interface:XGettingSequence
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. 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:
copy
in interfaceCopyable
- Specified by:
copy
in interfaceXGettingCollection<E>
- Specified by:
copy
in interfaceXGettingEnum<E>
- Specified by:
copy
in interfaceXGettingSequence<E>
- Specified by:
copy
in interfaceXGettingSet<E>
- Specified by:
copy
in interfaceXIncreasingSequence<E>
- Specified by:
copy
in interfaceXSortableEnum<E>
- Specified by:
copy
in interfaceXSortableSequence<E>
- Returns:
- a copy of this list
-
toReversed
XIncreasingEnum<E> toReversed()Description copied from interface:XSortableSequence
Creates a newXGettingSequence
with 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:
toReversed
in interfaceXGettingEnum<E>
- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Specified by:
toReversed
in interfaceXIncreasingSequence<E>
- Specified by:
toReversed
in interfaceXSortableEnum<E>
- Specified by:
toReversed
in interfaceXSortableSequence<E>
- Returns:
- New copy of the collection
-
reverse
XIncreasingEnum<E> reverse()Description copied from interface:XSortableSequence
Reverses 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:
reverse
in interfaceXIncreasingSequence<E>
- Specified by:
reverse
in interfaceXOrderingEnum<E>
- Specified by:
reverse
in interfaceXOrderingSequence<E>
- Specified by:
reverse
in interfaceXSortableEnum<E>
- Specified by:
reverse
in interfaceXSortableSequence<E>
- Returns:
- this
-
range
- Specified by:
range
in interfaceXGettingEnum<E>
- Specified by:
range
in interfaceXGettingSequence<E>
- Specified by:
range
in interfaceXIncreasingSequence<E>
-
sort
Description copied from interface:Sortable
Sorts this collection according to the given comparator and returns itself.- Specified by:
sort
in interfaceSortable<E>
- Specified by:
sort
in interfaceXIncreasingSequence<E>
- Specified by:
sort
in interfaceXSortableEnum<E>
- Specified by:
sort
in interfaceXSortableSequence<E>
- Parameters:
comparator
- to sort this collection- Returns:
- this
-