Package java.util
Class AbstractSequentialList

Public Method set

Object set(int index, Object o)

Overrides:

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Replaces the element at the specified position in this list with the specified element.

This implementation first gets a list iterator pointing to the indexed element (with listIterator(index)). Then, it gets the current element using ListIterator.next and replaces it with ListIterator.set.