Sets the contents of this sequence to that of the given collection.
(Collection collection)
| 70 | * of the given collection. |
| 71 | */ |
| 72 | public void set(Collection collection) { |
| 73 | checkCollectionType(collection); |
| 74 | clear(); |
| 75 | addAll(collection); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * {@inheritDoc} |