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 and 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 and Description |
---|---|
void |
add(int index,
T node) |
boolean |
add(T node) |
boolean |
addAll(Collection<? extends T> collection) |
boolean |
addAll(int index,
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) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
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!Copyright © 2020. All rights reserved.