Interface XOrderingEnum<E>
- All Superinterfaces:
- ExtendedCollection<E>,- ExtendedSequence<E>,- XOrderingSequence<E>
- All Known Subinterfaces:
- XDecreasingEnum<E>,- XEnum<E>,- XIncreasingEnum<E>,- XReference<E>,- XSettingEnum<E>,- XSortableEnum<E>,- XTable<K,V>,- XTable.Keys<K,V>
- All Known Implementing Classes:
- EqHashEnum,- EqHashTable,- EqHashTable.Keys,- HashEnum,- HashTable,- HashTable.Keys,- LinkReference.Default,- Single,- Singleton
public interface XOrderingEnum<E> extends XOrderingSequence<E>
- 
Nested Class SummaryNested classes/interfaces inherited from interface one.microstream.collections.interfaces.ExtendedCollectionExtendedCollection.Creator<E,C extends ExtendedCollection<E>>
- 
Method SummaryModifier and Type Method Description XOrderingEnum<E>reverse()Reverses the order of its own elements and returns itself.XOrderingEnum<E>shiftBy(long sourceIndex, long distance)Moves the element from the sourceIndex in the sequence to a higher index position.
 All other elements are possibly moved to create the empty slot for the shifting element.XOrderingEnum<E>shiftBy(long sourceIndex, long distance, long length)Moves multiple elements from the sourceIndex in the sequence to a higher index position.
 All other elements are possibly moved to create the empty slot for the shifting elements.XOrderingEnum<E>shiftTo(long sourceIndex, long targetIndex)Moves the element from the sourceIndex in the sequence to the targetIndex.
 All other elements are possibly moved to create the empty slot for the shifting element.XOrderingEnum<E>shiftTo(long sourceIndex, long targetIndex, long length)Moves multiple elements from the sourceIndex in the sequence to the targetIndex.
 All other elements are possibly moved to create the empty slot for the shifting element.XOrderingEnum<E>swap(long indexA, long indexB)XOrderingEnum<E>swap(long indexA, long indexB, long length)Methods inherited from interface one.microstream.collections.interfaces.ExtendedCollectionhasVolatileElements, nullAllowed
- 
Method Details- 
shiftToDescription copied from interface:XOrderingSequenceMoves the element from the sourceIndex in the sequence to the targetIndex.
 All other elements are possibly moved to create the empty slot for the shifting element.Does not expand or shrink the capacity of the sequence. Throws a IndexExceededExceptionif sourceIndex or targetIndex are greater than the size of the sequence.- Specified by:
- shiftToin interface- XOrderingSequence<E>
- Parameters:
- sourceIndex- points to the source element; Index of the source element
- targetIndex- points to the target element; Index of the target element
- Returns:
- this
 
- 
shiftToDescription copied from interface:XOrderingSequenceMoves multiple elements from the sourceIndex in the sequence to the targetIndex.
 All other elements are possibly moved to create the empty slot for the shifting element.Does not expand or shrink the capacity of the sequence. Throws a IndexExceededExceptionif sourceIndex or targetIndex exceed the size of the sequence.- Specified by:
- shiftToin interface- XOrderingSequence<E>
- Parameters:
- sourceIndex- points to the source element; Index of the source element
- targetIndex- points to the target element; Index of the target element
- length- Amount of moved elements.
- Returns:
- self
 
- 
shiftByDescription copied from interface:XOrderingSequenceMoves the element from the sourceIndex in the sequence to a higher index position.
 All other elements are possibly moved to create the empty slot for the shifting element. ("to the right")Does not expand or shrink the capacity of the sequence. Throws a IndexExceededExceptionif sourceIndex or targetIndex (sourceIndex+distance) exceed the size of the sequence.- Specified by:
- shiftByin interface- XOrderingSequence<E>
- Parameters:
- sourceIndex- points to the source element; Index of the source element
- distance- of how far the element should be moved. Example: 1 moves the element from position 21 to position 22
- Returns:
- self
 
- 
shiftByDescription copied from interface:XOrderingSequenceMoves multiple elements from the sourceIndex in the sequence to a higher index position.
 All other elements are possibly moved to create the empty slot for the shifting elements. ("to the right")Does not expand or shrink the capacity of the sequence. Throws a IndexExceededExceptionif sourceIndex or targetIndex (sourceIndex+distance+length) exceed the size of the sequence.- Specified by:
- shiftByin interface- XOrderingSequence<E>
- Parameters:
- sourceIndex- points to the source element; Index of the source element
- distance- of how far the element should be moved. Example: 1 moves the element from position 21 to position 22
- length- Amount of moved elements.
- Returns:
- self
 
- 
swap- Specified by:
- swapin interface- XOrderingSequence<E>
 
- 
swap- Specified by:
- swapin interface- XOrderingSequence<E>
 
- 
reverseXOrderingEnum<E> reverse()Description copied from interface:XOrderingSequenceReverses the order of its own elements and returns itself.- Specified by:
- reversein interface- XOrderingSequence<E>
- Returns:
- this
 
 
-