Interface XGettingList<E>

All Superinterfaces:
CapacityCarrying, Copyable, ExtendedBag<E>, ExtendedCollection<E>, ExtendedList<E>, ExtendedSequence<E>, Iterable<E>, Sized, XGettingBag<E>, XGettingCollection<E>, XGettingSequence<E>, XIndexIterable<E>, XIterable<E>, XJoinable<E>
All Known Subinterfaces:
XBasicList<E>, XBasicTable.Values<K,​V>, XChart.Values<K,​V>, XDecreasingList<E>, XGettingTable.Values<K,​V>, XImmutableList<E>, XImmutableTable.Values<K,​V>, XIncreasingList<E>, XLadder<E>, XList<E>, XProcessingList<E>, XPutGetList<E>, XReference<E>, XReferencing<E>, XSettingList<E>, XTable.Values<K,​V>
All Known Implementing Classes:
ArrayAccessor, ArrayCollector, ArrayView, BulkList, Constant, ConstHashTable.Values, ConstList, Empty, EqBulkList, EqConstHashTable.Values, EqConstList, EqHashTable.Values, FixedList, HashTable.Values, LimitList, LinkingReferencing.Default, LinkReference.Default, ListAccessor, ListProcessor, ListView, LockedList, MappedList, Single, Singleton, SingletonView, SubList, SubListAccessor, SubListProcessor, SubListView, SynchList

public interface XGettingList<E>
extends XGettingSequence<E>, XGettingBag<E>, ExtendedList<E>
  • Method Details

    • immure

      XImmutableList<E> immure()
      Provides an instance of an immutable collection type with equal behavior and data as this instance.

      If this instance already is of an immutable collection type, it returns itself.

      Specified by:
      immure in interface XGettingBag<E>
      Specified by:
      immure in interface XGettingCollection<E>
      Specified by:
      immure in interface XGettingSequence<E>
      Returns:
      an immutable copy of this collection instance.
    • listIterator

      ListIterator<E> listIterator()
    • listIterator

      ListIterator<E> listIterator​(long index)
    • old

      OldList<E> old()
      Specified by:
      old in interface XGettingCollection<E>
    • copy

      XGettingList<E> copy()
      Description copied from interface: XGettingSequence
      Creates a true copy of this list which references the 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 interface Copyable
      Specified by:
      copy in interface XGettingBag<E>
      Specified by:
      copy in interface XGettingCollection<E>
      Specified by:
      copy in interface XGettingSequence<E>
      Returns:
      a copy of this list
    • toReversed

      XGettingList<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
    • view

      XGettingList<E> view()
      Description copied from interface: XGettingCollection
      Creates a view of this collection and returns it. It is a read-only collection, which wraps around this collection and only allows read methods.

      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 XGettingBag<E>
      Specified by:
      view in interface XGettingCollection<E>
      Specified by:
      view in interface XGettingSequence<E>
      Returns:
      new read-only collection to view this collection
    • view

      XGettingList<E> view​(long lowIndex, long highIndex)
      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:
      lowIndex - defines lower boundary for the view of the collection.
      highIndex - defines higher boundary for the view of the collection.
      Returns:
      new read-only collection to view a range of elements in this collection
    • range

      XGettingList<E> range​(long fromIndex, long toIndex)
      Specified by:
      range in interface XGettingSequence<E>