Interface XProcessingSequence<E>

All Superinterfaces:
CapacityCarrying, Clearable, ConsolidatableCollection, Copyable, ExtendedCollection<E>, ExtendedSequence<E>, Iterable<E>, OptimizableCollection, Processable<E>, ReleasingCollection<E>, Sized, Truncateable, XGettingCollection<E>, XGettingSequence<E>, XIndexIterable<E>, XIterable<E>, XJoinable<E>, XProcessingCollection<E>, XRemovingCollection<E>, XRemovingSequence<E>
All Known Subinterfaces:
XBasicEnum<E>, XBasicList<E>, XBasicSequence<E>, XBasicTable<K,​V>, XBasicTable.Keys<K,​V>, XBasicTable.Values<K,​V>, XChart<K,​V>, XChart.Keys<K,​V>, XChart.Values<K,​V>, XDecreasingEnum<E>, XDecreasingList<E>, XDecreasingSequence<E>, XEnum<E>, XLadder<E>, XList<E>, XProcessingEnum<E>, XProcessingList<E>, XProcessingSortation<E>, XRank<E>, XSequence<E>, XSortation<E>, XTable<K,​V>, XTable.Keys<K,​V>, XTable.Values<K,​V>
All Known Implementing Classes:
ArrayCollector, BulkList, EnumProcessor, EqBulkList, EqHashEnum, EqHashTable, EqHashTable.Keys, EqHashTable.Values, HashEnum, HashTable, HashTable.Keys, HashTable.Values, LimitList, ListProcessor, LockedList, Single, SubList, SubListProcessor, SubProcessor, SynchList

public interface XProcessingSequence<E>
extends XRemovingSequence<E>, XGettingSequence<E>, XProcessingCollection<E>
  • Method Details

    • removeAt

      E removeAt​(long index)
    • pop

      E pop()
    • pick

      E pick()
    • toReversed

      XProcessingSequence<E> toReversed()
      Description copied from interface: XGettingSequence
      Creates a new XGettingSequence with the reversed order of elements.

      This method creates a new collection and does not change the existing collection.

      Specified by:
      toReversed in interface XGettingSequence<E>
      Returns:
      New copy of the collection
    • moveSelection

      <C extends Consumer<? super E>> C moveSelection​(C target, long... indices)
    • view

      XGettingSequence<E> view​(long fromIndex, long toIndex)
      Description copied from interface: XGettingSequence
      Creates a sub-view of this collection and returns it. It is a read-only collection, which wraps around this collection and only allows read methods.
      The view is limited to a range from the lowIndex to the highIndex.

      A view is different from immutable collection (XGettingCollection.immure()) in the way, that changes in this collection are still affecting the view. The immutable collection on the other hand has no reference to this collection and changes therefore do not affect the immutable collection.

      Specified by:
      view in interface XGettingSequence<E>
      Parameters:
      fromIndex - defines lower boundary for the view of the collection.
      toIndex - defines higher boundary for the view of the collection.
      Returns:
      new read-only collection to view a range of elements in this collection