| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv List | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Overrides java. Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public Object | get(int
index of the element to return i)Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public Object | remove(int
the index of the element to be removed index)Overrides java. Implements java. Removes the element at the specified position in this list (optional operation). |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Overrides java. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public void | |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| end_index | back to summary |
|---|---|
| pack-priv int end_index | |
| parent | back to summary |
|---|---|
| pack-priv List<E> parent | |
| start_index | back to summary |
|---|---|
| pack-priv int start_index | |
| Sublist | back to summary |
|---|---|
| public Sublist() | |
| Sublist | back to summary |
|---|---|
public Sublist(List<E> parent, int start_index, int end_index)
| |
| add | back to summary |
|---|---|
| public void add(int index, Object 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).
| |
| get | back to summary |
|---|---|
| public Object get(int i) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| remove | back to summary |
|---|---|
| public Object 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 Object set(int index, Object element) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| setParent | back to summary |
|---|---|
public void setParent(List<E> parent, int start_index, int end_index)
| |
| 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
| |