AbstractSequentialList (Java SE 25 & JDK 25)
- 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
voidInserts the specified element at the specified position in this list (optional operation).
booleanInserts 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).
Replaces the element at the specified position in this list with the specified element (optional operation).
Methods declared in interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
AbstractSequentialList
-
-
Method Details
-
get
-
set
-
add
-
remove
-
addAll
-
iterator
-
listIterator
-