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, toArray
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toString
protected AbstractSequentialList()
public void add(int location, E object)
AbstractList
Concrete implementations that would like to support the add functionality must override this method.
public boolean addAll(int location, Collection<? extends E> collection)
AbstractList
public E get(int location)
AbstractList
public Iterator<E> iterator()
AbstractList
public abstract ListIterator<E> listIterator(int location)
AbstractList
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
location
- the index at which to start the iteration.ListIterator
public E remove(int location)
AbstractList
public E set(int location, E object)
AbstractList