| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index at which the specified element is to be inserted index, E element to be inserted element)Redeclares java.
Deprecated
Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<? extends E> collection containing elements to be added to this list c)Redeclares java.
Deprecated
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public PSequence | minus(Object e)
Redeclares org. Returns a sequence consisting of the elements of this without the first occurrence of e. |
| public PSequence | Returns: a sequence consisting of the elements of this with the element at index i removed.
|
| public PSequence | |
| public PSequence | |
| public PSequence | |
| public PSequence | |
| public PSequence | Returns: a sequence consisting of the elements of this with list inserted at index i.
|
| public E | remove(int
the index of the element to be removed index)Redeclares java.
Deprecated
Removes the element at the specified position in this list (optional operation). |
| public E | set(int
index of the element to replace index, E element to be stored at the specified position element)Redeclares java.
Deprecated
Replaces the element at the specified position in this list with the specified element (optional operation). |
| public PSequence | subList(int
low endpoint (inclusive) of the subList start, int high endpoint (exclusive) of the subList end)Redeclares java. Returns a view of the portion of this list between the specified
|
| public PSequence | Returns: a sequence consisting of the elements of this with e replacing the element at index i.
|
| add | back to summary |
|---|---|
| public void add(int index, E element) Redeclares java. Doc from java. Deprecated
Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<? extends E> c) Redeclares java. Doc from java. Deprecated
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
| |
| minus | back to summary |
|---|---|
| public PSequence Redeclares org. Returns a sequence consisting of the elements of this without the first occurrence of e.
| |
| minus | back to summary |
|---|---|
public PSequence
| |
| minusAll | back to summary |
|---|---|
| public PSequence Redeclares org.
| |
| plus | back to summary |
|---|---|
| public PSequence Redeclares org.
| |
| plus | back to summary |
|---|---|
public PSequence
| |
| plusAll | back to summary |
|---|---|
| public PSequence Redeclares org.
| |
| plusAll | back to summary |
|---|---|
public PSequence
| |
| remove | back to summary |
|---|---|
| public E remove(int index) Redeclares java. Doc from java. Deprecated
Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| set | back to summary |
|---|---|
| public E set(int index, E element) Redeclares java. Doc from java. Deprecated
Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| subList | back to summary |
|---|---|
| public PSequence Redeclares java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
| |
| with | back to summary |
|---|---|
public PSequence
| |