Interface XDecreasingEnum<E>
- All Superinterfaces:
CapacityCarrying
,Clearable
,ConsolidatableCollection
,Copyable
,ExtendedCollection<E>
,ExtendedSequence<E>
,Iterable<E>
,OptimizableCollection
,Processable<E>
,ReleasingCollection<E>
,Sized
,Sortable<E>
,Truncateable
,XDecreasingSequence<E>
,XGettingCollection<E>
,XGettingEnum<E>
,XGettingSequence<E>
,XGettingSet<E>
,XIndexIterable<E>
,XIterable<E>
,XJoinable<E>
,XOrderingEnum<E>
,XOrderingSequence<E>
,XProcessingCollection<E>
,XProcessingEnum<E>
,XProcessingSequence<E>
,XProcessingSet<E>
,XRemovingCollection<E>
,XRemovingEnum<E>
,XRemovingSequence<E>
,XRemovingSet<E>
,XReplacingCollection<E>
,XSettingEnum<E>
,XSettingSequence<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 XDecreasingEnum<E> extends XProcessingEnum<E>, XSettingEnum<E>, XDecreasingSequence<E>, XReplacingCollection<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
XDecreasingEnum.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>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XProcessingSet
XProcessingSet.Factory<E>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XRemovingEnum
XRemovingEnum.Factory<E>
-
Method Summary
Modifier and Type Method Description XDecreasingEnum<E>
copy()
Creates a true copy of this collection which references the same elements as this collection does at the time the method is called.XDecreasingEnum<E>
range(long fromIndex, long toIndex)
XDecreasingEnum<E>
reverse()
Reverses the order of its own elements and returns itself.XDecreasingEnum<E>
set(long index, E[] elements, int offset, int length)
XDecreasingEnum<E>
set(long index, XGettingSequence<? extends E> elements, long offset, long length)
XDecreasingEnum<E>
setAll(long index, E... elements)
XDecreasingEnum<E>
sort(Comparator<? super E> comparator)
Sorts this collection according to the given comparator and returns itself.long
substitute(Function<? super E,? extends E> mapper)
XDecreasingEnum<E>
swap(long indexA, long indexB)
XDecreasingEnum<E>
swap(long indexA, long indexB, long length)
XDecreasingEnum<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.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.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.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.XSettingEnum
setFirst, setGet, setLast
Methods inherited from interface one.microstream.collections.types.XSortableEnum
shiftBy, shiftBy, shiftTo, shiftTo
-
Method Details
-
setAll
- Specified by:
setAll
in interfaceXDecreasingSequence<E>
- Specified by:
setAll
in interfaceXSettingEnum<E>
- Specified by:
setAll
in interfaceXSettingSequence<E>
-
set
- Specified by:
set
in interfaceXDecreasingSequence<E>
- Specified by:
set
in interfaceXSettingEnum<E>
- Specified by:
set
in interfaceXSettingSequence<E>
-
set
XDecreasingEnum<E> set(long index, XGettingSequence<? extends E> elements, long offset, long length)- Specified by:
set
in interfaceXDecreasingSequence<E>
- Specified by:
set
in interfaceXSettingEnum<E>
- Specified by:
set
in interfaceXSettingSequence<E>
-
swap
- Specified by:
swap
in interfaceXDecreasingSequence<E>
- Specified by:
swap
in interfaceXOrderingEnum<E>
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingEnum<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableEnum<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
swap
- Specified by:
swap
in interfaceXDecreasingSequence<E>
- Specified by:
swap
in interfaceXOrderingEnum<E>
- Specified by:
swap
in interfaceXOrderingSequence<E>
- Specified by:
swap
in interfaceXSettingEnum<E>
- Specified by:
swap
in interfaceXSettingSequence<E>
- Specified by:
swap
in interfaceXSortableEnum<E>
- Specified by:
swap
in interfaceXSortableSequence<E>
-
copy
XDecreasingEnum<E> copy()Description copied from interface:XGettingCollection
Creates a true copy of this collection which references the same elements as this collection does at the time the method is called. The elements themselves are NOT copied (no deep copying).
The type of the returned set is the same as of this list if possible.- Specified by:
copy
in interfaceCopyable
- Specified by:
copy
in interfaceXDecreasingSequence<E>
- 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 interfaceXProcessingEnum<E>
- Specified by:
copy
in interfaceXProcessingSet<E>
- Specified by:
copy
in interfaceXSettingEnum<E>
- Specified by:
copy
in interfaceXSettingSequence<E>
- Specified by:
copy
in interfaceXSortableEnum<E>
- Specified by:
copy
in interfaceXSortableSequence<E>
- Returns:
- a copy of this list
-
toReversed
XDecreasingEnum<E> toReversed()Description copied from interface:XGettingSequence
Creates a newXGettingSequence
with the reversed order of elements.This method creates a new collection and does not change the existing collection.
- Specified by:
toReversed
in interfaceXDecreasingSequence<E>
- Specified by:
toReversed
in interfaceXGettingEnum<E>
- Specified by:
toReversed
in interfaceXGettingSequence<E>
- Specified by:
toReversed
in interfaceXProcessingEnum<E>
- Specified by:
toReversed
in interfaceXProcessingSequence<E>
- Specified by:
toReversed
in interfaceXSettingEnum<E>
- Specified by:
toReversed
in interfaceXSettingSequence<E>
- Specified by:
toReversed
in interfaceXSortableEnum<E>
- Specified by:
toReversed
in interfaceXSortableSequence<E>
- Returns:
- New copy of the collection
-
reverse
XDecreasingEnum<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 interfaceXDecreasingSequence<E>
- Specified by:
reverse
in interfaceXOrderingEnum<E>
- Specified by:
reverse
in interfaceXOrderingSequence<E>
- Specified by:
reverse
in interfaceXSettingEnum<E>
- Specified by:
reverse
in interfaceXSettingSequence<E>
- Specified by:
reverse
in interfaceXSortableEnum<E>
- Specified by:
reverse
in interfaceXSortableSequence<E>
- Returns:
- this
-
range
- Specified by:
range
in interfaceXDecreasingSequence<E>
- Specified by:
range
in interfaceXGettingEnum<E>
- Specified by:
range
in interfaceXGettingSequence<E>
- Specified by:
range
in interfaceXSettingEnum<E>
- Specified by:
range
in interfaceXSettingSequence<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 interfaceXDecreasingSequence<E>
- Specified by:
sort
in interfaceXSettingEnum<E>
- Specified by:
sort
in interfaceXSettingSequence<E>
- Specified by:
sort
in interfaceXSortableEnum<E>
- Specified by:
sort
in interfaceXSortableSequence<E>
- Parameters:
comparator
- to sort this collection- Returns:
- this
-
substitute
- Specified by:
substitute
in interfaceXReplacingCollection<E>
-