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 interface
XDecreasingSequence.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 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 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.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 Details
-
setAll
- Specified by:
setAll
in interfaceXSettingSequence<E>
-
set
- Specified by:
set
in interfaceXSettingSequence<E>
-
set
XDecreasingSequence<E> set(long index, XGettingSequence<? extends E> elements, long offset, long length)- Specified by:
set
in interfaceXSettingSequence<E>
-
swap
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
swap
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
copy
XDecreasingSequence<E> copy()Description copied from interface:XGettingSequence
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. 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 interfaceXGettingSequence<E>
- Specified by:
copy
in interfaceXSettingSequence<E>
- Specified by:
copy
in interfaceXSortableSequence<E>
- Returns:
- a copy of this list
-
toReversed
XDecreasingSequence<E> toReversed()- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Specified by:
toReversed
in interfaceXProcessingSequence<E>
- Specified by:
toReversed
in interfaceXSettingSequence<E>
- Specified by:
toReversed
in interfaceXSortableSequence<E>
-
reverse
XDecreasingSequence<E> reverse()- Specified by:
reverse
in interfaceXOrderingSequence<E>
- Specified by:
reverse
in interfaceXSettingSequence<E>
- Specified by:
reverse
in interfaceXSortableSequence<E>
-
range
- Specified by:
range
in interfaceXGettingSequence<E>
- Specified by:
range
in interfaceXSettingSequence<E>
-
sort
- Specified by:
sort
in interfaceSortable<E>
- Specified by:
sort
in interfaceXSettingSequence<E>
- Specified by:
sort
in interfaceXSortableSequence<E>
-