public abstract class AbstractSequentialList<E> extends AbstractList<E>
modCount| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSequentialList()
Constructs a new instance of this AbstractSequentialList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int location,
E object)
Inserts the specified object into this List at the specified location.
|
boolean |
addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified Collection at the specified location
in this List.
|
E |
get(int location)
Returns the element at the specified location in this list.
|
Iterator<E> |
iterator()
Returns an iterator on the elements of this list.
|
abstract ListIterator<E> |
listIterator(int location)
Returns a list iterator on the elements of this list.
|
E |
remove(int location)
Removes the object at the specified location from this list.
|
E |
set(int location,
E object)
Replaces the element at the specified location in this list with the
specified object.
|
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList, toArray, toArrayaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toStringprotected AbstractSequentialList()
public void add(int location,
E object)
AbstractListConcrete implementations that would like to support the add functionality must override this method.
public boolean addAll(int location,
Collection<? extends E> collection)
AbstractListpublic E get(int location)
AbstractListpublic Iterator<E> iterator()
AbstractListpublic abstract ListIterator<E> listIterator(int location)
AbstractListlistIterator in interface List<E>listIterator in class AbstractList<E>location - the index at which to start the iteration.ListIteratorpublic E remove(int location)
AbstractListpublic E set(int location, E object)
AbstractList