public class BackedList<T extends Node>
extends java.util.ArrayList<T>
BackedList
represents a list of content of a Branch
. Changes to the list will be reflected in the branch,
though changes to the branch will not be reflected in this list.
Constructor and Description |
---|
BackedList(AbstractBranch branch,
java.util.List<Node> branchContent) |
BackedList(AbstractBranch branch,
java.util.List<Node> branchContent,
int capacity) |
BackedList(AbstractBranch branch,
java.util.List<Node> branchContent,
java.util.List<T> initialContent) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T node) |
boolean |
add(T node) |
boolean |
addAll(java.util.Collection<? extends T> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends T> collection) |
void |
addLocal(T node)
Performs a local addition which is not forward through to the Branch or
backing list
|
void |
clear() |
T |
remove(int index) |
boolean |
remove(java.lang.Object object) |
T |
set(int index,
T node) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
public BackedList(AbstractBranch branch, java.util.List<Node> branchContent)
public BackedList(AbstractBranch branch, java.util.List<Node> branchContent, int capacity)
public BackedList(AbstractBranch branch, java.util.List<Node> branchContent, java.util.List<T> initialContent)
public boolean add(T node)
public void add(int index, T node)
public boolean remove(java.lang.Object object)
public T remove(int index)
public boolean addAll(java.util.Collection<? extends T> collection)
public boolean addAll(int index, java.util.Collection<? extends T> collection)
public void clear()
public void addLocal(T node)
node
- DOCUMENT ME!