index. Indexes
are zero-based.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public KType | |
| public int | indexOf(KType e1)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public void | insert(int
The index at which the element should be inserted, shifting any existing and
subsequent elements to the right. index, KType e1)Inserts the specified element at the specified position in this list. |
| public int | lastIndexOf(KType e1)
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public KType | |
| public boolean | removeElement(KType e1)
Removes the first element that equals |
| public int | removeFirst(KType e1)
Removes the first element that equals |
| public int | removeLast(KType e1)
Removes the last element that equals |
| public KType | |
| public void | removeRange(int fromIndex, int toIndex)
Removes from this container all of the elements with indexes between |
| public ObjectIndexedContainer | |
| public KType | Returns: Returns the previous value in the list.Replaces the element at the specified position in this list with the specified element. |
| public ObjectIndexedContainer | |
| public Stream |
| add | back to summary |
|---|---|
| public void add(KType e1) Adds an element to the end of this container (the last index is incremented by one). | |
| get | back to summary |
|---|---|
public KType get(int index)
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(KType e1) Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. | |
| insert | back to summary |
|---|---|
| public void insert(int index, KType e1) Inserts the specified element at the specified position in this list.
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(KType e1) Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. | |
| removeAt | back to summary |
|---|---|
| public KType removeAt(int index) Removes the element at the specified position in this container and returns it.
| |
| removeElement | back to summary |
|---|---|
| public boolean removeElement(KType e1) Removes the first element that equals | |
| removeFirst | back to summary |
|---|---|
| public int removeFirst(KType e1) Removes the first element that equals | |
| removeLast | back to summary |
|---|---|
| public int removeLast(KType e1) Removes the last element that equals | |
| removeLast | back to summary |
|---|---|
| public KType removeLast() Removes and returns the last element of this container. This container must not be empty. | |
| removeRange | back to summary |
|---|---|
| public void removeRange(int fromIndex, int toIndex) Removes from this container all of the elements with indexes between | |
| reverse | back to summary |
|---|---|
| public ObjectIndexedContainer Reverses the elements in this container and returns this container. | |
| set | back to summary |
|---|---|
| public KType set(int index, KType e1) Replaces the element at the specified position in this list with the specified element.
| |
| sort | back to summary |
|---|---|
| public ObjectIndexedContainer Sorts the elements in this container and returns this container. | |
| stream | back to summary |
|---|---|
| public Stream Returns this container elements as a stream. | |