| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(E
element whose presence in this collection is to be ensured o)Redeclares java.
Deprecated
Ensures that this collection contains the specified element (optional operation). |
| public boolean | addAll(Collection<? extends E>
collection containing elements to be added to this collection c)Redeclares java.
Deprecated
Adds all of the elements in the specified collection to this collection (optional operation). |
| public void | clear()
Redeclares java.
Deprecated
Removes all of the elements from this collection (optional operation). |
| public PCollection | |
| public PCollection | |
| public PCollection | |
| public PCollection | Returns: a collection which contains all of the elements of list and this
|
| public boolean | remove(Object
element to be removed from this collection, if present o)Redeclares java.
Deprecated
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
| public boolean | removeAll(Collection<?>
collection containing elements to be removed from this collection c)Redeclares java.
Deprecated
Removes all of this collection's elements that are also contained in the specified collection (optional operation). |
| public boolean | retainAll(Collection<?>
collection containing elements to be retained in this collection c)Redeclares java.
Deprecated
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
| add | back to summary |
|---|---|
| public boolean add(E o) Redeclares java. Doc from java. Deprecated
Ensures that this collection contains the specified element (optional
operation). Returns
Collections that support this operation may place limitations on what
elements may be added to this collection. In particular, some
collections will refuse to add
If a collection refuses to add a particular element for any reason
other than that it already contains the element, it must throw
an exception (rather than returning
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends E> c) Redeclares java. Doc from java. Deprecated
Adds all of the elements in the specified collection to this collection (optional operation). 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 collection, and this collection is nonempty.) If the specified collection has a defined encounter order, processing of its elements generally occurs in that order.
| |
| clear | back to summary |
|---|---|
| public void clear() Redeclares java. Doc from java. Deprecated
Removes all of the elements from this collection (optional operation). The collection will be empty after this method returns.
| |
| minus | back to summary |
|---|---|
public PCollection
| |
| minusAll | back to summary |
|---|---|
public PCollection
| |
| plus | back to summary |
|---|---|
public PCollection
| |
| plusAll | back to summary |
|---|---|
public PCollection
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Redeclares java. Doc from java. Deprecated
Removes a single instance of the specified element from this
collection, if it is present (optional operation). More formally,
removes an element
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<?> c) Redeclares java. Doc from java. Deprecated
Removes all of this collection's elements that are also contained in the specified collection (optional operation). After this call returns, this collection will contain no elements in common with the specified collection.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<?> c) Redeclares java. Doc from java. Deprecated
Retains only the elements in this collection that are contained in the specified collection (optional operation). In other words, removes from this collection all of its elements that are not contained in the specified collection.
| |