BackedList represents a list of content of a org.. Changes to the list will be reflected in the branch,
though changes to the branch will not be reflected in this list.
| Modifier and Type | Field and Description |
|---|---|
| private AbstractBranch | branch
The |
| private List | branchContent
The content of the Branch which is modified if I am modified |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T
element to be appended to this list node)Overrides java. Implements java. |
| public void | add(int
index at which the specified element is to be inserted index, T element to be inserted node)Overrides java. Implements java. |
| public boolean | addAll(Collection<? extends T>
collection containing elements to be added to this list collection)Overrides java. Implements java. |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<? extends T> collection containing elements to be added to this list collection)Overrides java. Implements java. |
| public void | addLocal(T
DOCUMENT ME! node)Performs a local addition which is not forward through to the Branch or backing list |
| public void | clear()
Overrides java. Implements java. |
| public boolean | remove(Object
element to be removed from this list, if present object)Overrides java. Implements java. |
| public T | remove(int
the index of the element to be removed index)Overrides java. Implements java. |
| public T | set(int
index of the element to replace index, T element to be stored at the specified position node)Overrides java. Implements java. |
| branch | back to summary |
|---|---|
| private AbstractBranch branch The | |
| branchContent | back to summary |
|---|---|
| private List<Node> branchContent The content of the Branch which is modified if I am modified | |
| BackedList | back to summary |
|---|---|
| public BackedList(AbstractBranch branch, List<Node> branchContent) | |
| BackedList | back to summary |
|---|---|
| public BackedList(AbstractBranch branch, List<Node> branchContent, int capacity) | |
| BackedList | back to summary |
|---|---|
| public BackedList(AbstractBranch branch, List<Node> branchContent, List<T> initialContent) | |
| add | back to summary |
|---|---|
| public boolean add(T node) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list.
| |
| add | back to summary |
|---|---|
| public void add(int index, T node) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this list. 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(Collection<? extends T> collection) Overrides java. Implements java. Doc from java. Appends all of the elements in the specified collection to the end of 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. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<? extends T> collection) Overrides java. Implements java. Doc from java. Inserts all of the elements in the specified collection into this list, starting at the specified position. 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 the list in the order that they are returned by the specified collection's iterator.
| |
| addLocal | back to summary |
|---|---|
| public void addLocal(T node) Performs a local addition which is not forward through to the Branch or backing list
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list. The list will be empty after this call returns.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object object) Overrides java. Implements java. Doc from java. Removes the first occurrence of the specified element from this list,
if it is present. If the list does not contain the element, it is
unchanged. More formally, removes the element with the lowest index
| |
| remove | back to summary |
|---|---|
| public T remove(int index) Overrides java. Implements java. Doc from java. Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).
| |
| set | back to summary |
|---|---|
| public T set(int index, T node) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element.
| |