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.typing.Copyable
Copyable.Static
-
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 th 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()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)XDecreasingSequence<E>swap(long indexA, long indexB)XDecreasingSequence<E>swap(long indexA, long indexB, long length)XDecreasingSequence<E>toReversed()-
Methods inherited from interface one.microstream.collections.interfaces.CapacityCarrying
isFull, maximumCapacity, remainingCapacity
-
Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollection
nullAllowed
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface one.microstream.functional.Processable
process
-
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.XGettingSequence
at, copySelection, first, get, hasIndex, immure, indexBy, indexOf, isSorted, last, lastIndexBy, lastIndexOf, maxIndex, minIndex, peek, poll, scan, view
-
Methods inherited from interface one.microstream.collections.types.XIndexIterable
iterateIndexed
-
Methods inherited from interface one.microstream.collections.types.XProcessingCollection
fetch, iterate, moveTo, pinch, removeBy, removeDuplicates, retrieve, retrieveBy
-
Methods inherited from interface one.microstream.collections.types.XProcessingSequence
moveSelection, pick, pop, removeAt, view
-
Methods inherited from interface one.microstream.collections.types.XRemovingCollection
clear, consolidate, nullRemove, optimize, remove, removeAll, removeDuplicates, removeOne, retainAll, truncate
-
Methods inherited from interface one.microstream.collections.types.XRemovingSequence
removeRange, removeSelection, retainRange
-
Methods inherited from interface one.microstream.collections.types.XSettingSequence
set, setFirst, setGet, setLast
-
Methods inherited from interface one.microstream.collections.types.XSortableSequence
shiftBy, shiftBy, shiftTo, shiftTo
-
-
-
-
Method Detail
-
setAll
XDecreasingSequence<E> setAll(long index, E... elements)
- Specified by:
setAllin interfaceXSettingSequence<E>
-
set
XDecreasingSequence<E> set(long index, E[] elements, int offset, int length)
- 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
XDecreasingSequence<E> swap(long indexA, long indexB)
- Specified by:
swapin interfaceXOrderingSequence<E>- Specified by:
swapin interfaceXSettingSequence<E>- Specified by:
swapin interfaceXSortableSequence<E>
-
swap
XDecreasingSequence<E> swap(long indexA, long indexB, long length)
- 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 th 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()
- Specified by:
toReversedin interfaceXGettingSequence<E>- Specified by:
toReversedin interfaceXProcessingSequence<E>- Specified by:
toReversedin interfaceXSettingSequence<E>- Specified by:
toReversedin interfaceXSortableSequence<E>
-
reverse
XDecreasingSequence<E> reverse()
- Specified by:
reversein interfaceXOrderingSequence<E>- Specified by:
reversein interfaceXSettingSequence<E>- Specified by:
reversein interfaceXSortableSequence<E>
-
range
XDecreasingSequence<E> range(long fromIndex, long toIndex)
- Specified by:
rangein interfaceXGettingSequence<E>- Specified by:
rangein interfaceXSettingSequence<E>
-
sort
XDecreasingSequence<E> sort(Comparator<? super E> comparator)
- Specified by:
sortin interfaceSortable<E>- Specified by:
sortin interfaceXSettingSequence<E>- Specified by:
sortin interfaceXSortableSequence<E>
-
-