Replaces the element at the specified position in this list with the
specified element (optional operation).
@param index index of the element to replace
@param element element to be stored at the specified position
@return the element previously at the specified position
@throws UnsupportedOperationException if the <tt>set</tt> operation
is not supported by this list
@throws ClassCastException if the class of the specified element
prevents it from being added to this list
@throws NullPointerException if the specified element is null and
this list does not permit null elements
@throws IllegalArgumentException if some property of the specified
element prevents it from being added to this list
@throws IndexOutOfBoundsException if the index is out of range
(<tt>index < 0 || index >= size()</tt>)
Replaces the element at the specified position in this list with the specified element (optional operation).
@param index index of the element to replace @param element element to be stored at the specified position @return the element previously at the specified position @throws UnsupportedOperationException if the <tt>set</tt> operation is not supported by this list @throws ClassCastException if the class of the specified element prevents it from being added to this list @throws NullPointerException if the specified element is null and this list does not permit null elements @throws IllegalArgumentException if some property of the specified element prevents it from being added to this list @throws IndexOutOfBoundsException if the index is out of range (<tt>index < 0 || index >= size()</tt>)