Interface XDecreasingSequence<E>
- All Superinterfaces:
CapacityCarrying,Clearable,ConsolidatableCollection,Copyable,ExtendedCollection<E>,ExtendedSequence<E>,Iterable<E>,OptimizableCollection,Processable<E>,ReleasingCollection<E>,Sized,Sortable<E>,Truncateable,XGettingCollection<E>,XGettingSequence<E>,XIndexIterable<E>,XIterable<E>,XJoinable<E>,XOrderingSequence<E>,XProcessingCollection<E>,XProcessingSequence<E>,XRemovingCollection<E>,XRemovingSequence<E>,XSettingSequence<E>,XSortableSequence<E>
- All Known Subinterfaces:
XBasicTable.Values<K,V>,XChart.Values<K,V>,XDecreasingEnum<E>,XDecreasingList<E>,XEnum<E>,XList<E>,XTable<K,V>,XTable.Keys<K,V>,XTable.Values<K,V>
- All Known Implementing Classes:
ArrayCollector,BulkList,EqBulkList,EqHashEnum,EqHashTable,EqHashTable.Keys,EqHashTable.Values,HashEnum,HashTable,HashTable.Keys,HashTable.Values,LimitList,LockedList,Single,SubList,SubListProcessor,SynchList
public interface XDecreasingSequence<E> extends XProcessingSequence<E>, XSettingSequence<E>
Intermediate list type that combines all list aspects except increasing (adding and inserting), effectively causing
instances of this list type to maintain its size or shrink, but never grow.
This type is primarily used for the values list of a map, which can offer all functionality except adding values (without mapping it to a key).
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceXDecreasingSequence.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>Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingSequence
XProcessingSequence.Factory<E> -
Method Summary
Modifier and Type Method Description XDecreasingSequence<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.XDecreasingSequence<E>range(long fromIndex, long toIndex)XDecreasingSequence<E>reverse()Reverses the order of its own elements and returns itself.XDecreasingSequence<E>set(long index, E[] elements, int offset, int length)XDecreasingSequence<E>set(long index, XGettingSequence<? extends E> elements, long offset, long length)XDecreasingSequence<E>setAll(long index, E... elements)XDecreasingSequence<E>sort(Comparator<? super E> comparator)Sorts this collection according to the given comparator and returns itself.XDecreasingSequence<E>swap(long indexA, long indexB)XDecreasingSequence<E>swap(long indexA, long indexB, long length)XDecreasingSequence<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.XGettingSequence
at, copySelection, first, get, hasIndex, immure, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan, viewMethods 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, retainRangeMethods inherited from interface one.microstream.collections.types.XSettingSequence
set, setFirst, setGet, setLastMethods inherited from interface one.microstream.collections.types.XSortableSequence
shiftBy, shiftBy, shiftTo, shiftTo
-
Method Details
-
setAll
- Specified by:
setAllin interfaceXSettingSequence<E>
-
set
- Specified by:
setin interfaceXSettingSequence<E>
-
set
XDecreasingSequence<E> set(long index, XGettingSequence<? extends E> elements, long offset, long length)- Specified by:
setin interfaceXSettingSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
swap
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
copy
XDecreasingSequence<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 interfaceXGettingSequence<E>- Specified by:
copyin interfaceXSettingSequence<E>- Specified by:
copyin interfaceXSortableSequence<E>- Returns:
- a copy of this list
-
toReversed
XDecreasingSequence<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 interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXProcessingSequence<E>- Specified by:
toReversedin interfaceXSettingSequence<E>- Specified by:
toReversedin interfaceXSortableSequence<E>- Returns:
- New copy of the collection
-
reverse
XDecreasingSequence<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 interfaceXOrderingSequence<E>- Specified by:
reversein interfaceXSettingSequence<E>- Specified by:
reversein interfaceXSortableSequence<E>- Returns:
- this
-
range
- Specified by:
rangein interfaceXGettingSequence<E>- Specified by:
rangein interfaceXSettingSequence<E>
-
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 interfaceXSortableSequence<E>- Parameters:
comparator- to sort this collection- Returns:
- this
-