Located in compilation unit of org.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final List | |
| private final int |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int index, E element)
Overrides java. Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| private void | |
| public E | get(int index)
Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public E | remove(int index)
Overrides java. Implements java. Removes the element at the specified position in this list (optional operation). |
| public E | set(int index, E element)
Overrides java. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| from | back to summary |
|---|---|
| private final int from | |
| list | back to summary |
|---|---|
| private final List<E> list | |
| to | back to summary |
|---|---|
| private final int to | |
| SubList | back to summary |
|---|---|
| public SubList(List<E> list, int from, int to) | |
| add | back to summary |
|---|---|
| public void add(int index, E element) Overrides java. Implements java. Doc from java. 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).
| |
| checkIndex | back to summary |
|---|---|
| private void checkIndex(int index) | |
| get | back to summary |
|---|---|
| public E get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| remove | back to summary |
|---|---|
| public E remove(int index) Overrides java. Implements java. Doc from java. 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) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |