Serializable
, Cloneable
, Iterable<T>
, Collection<T>
, List<T>
, RandomAccess
public class BackedList<T extends Node> extends 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.
modCount
Constructor | Description |
---|---|
BackedList(AbstractBranch branch,
List<Node> branchContent) |
|
BackedList(AbstractBranch branch,
List<Node> branchContent,
int capacity) |
|
BackedList(AbstractBranch branch,
List<Node> branchContent,
List<T> initialContent) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(int index,
T node) |
|
boolean |
add(T node) |
|
boolean |
addAll(int index,
Collection<? extends T> collection) |
|
boolean |
addAll(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(Object object) |
|
T |
set(int index,
T node) |
containsAll, toString
equals, hashCode
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
parallelStream, stream
containsAll, equals, hashCode
public BackedList(AbstractBranch branch, List<Node> branchContent)
public BackedList(AbstractBranch branch, List<Node> branchContent, int capacity)
public BackedList(AbstractBranch branch, List<Node> branchContent, List<T> initialContent)
public boolean add(T node)
public void add(int index, T node)
public boolean remove(Object object)
public T remove(int index)
public boolean addAll(Collection<? extends T> collection)
public boolean addAll(int index, Collection<? extends T> collection)
public void clear()
public void addLocal(T node)
node
- DOCUMENT ME!