Type Parameters:
E - the type of elements in this list
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, SequencedCollection<E>
Direct Known Subclasses:
LinkedList

  • Field Summary

  • Constructor Summary

    Constructors

  • Method Summary

    void

    add(int index, E element)

    Inserts the specified element at the specified position in this list (optional operation).

    boolean

    Inserts all of the elements in the specified collection into this list at the specified position (optional operation).

    get(int index)

    Returns the element at the specified position in this list.

    iterator()

    Returns an iterator over the elements in this list (in proper sequence).

    listIterator(int index)

    Returns a list iterator over the elements in this list (in proper sequence).

    remove(int index)

    Removes the element at the specified position in this list (optional operation).

    set(int index, E element)

    Replaces the element at the specified position in this list with the specified element (optional operation).

  • Constructor Details

    • AbstractSequentialList

  • Method Details

    • get

    • set

    • add

    • remove

    • addAll

    • iterator

    • listIterator