set All
Sets all elements in the specified collection as the new contents of this list, in the order that they are returned by the specified collection's Iterator. Clears all items currently in this list.
The behavior of this operation is undefined if the specified collection is modified while the operation is in progress (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty).
Return
true
if this list changed as a result of the call.
Parameters
elements
Collection containing elements to be set as new contents of this list.
Throws
If the specified collection is null.