public class BackedList extends ArrayList
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.
Modifier and Type | Field and Description |
---|---|
private AbstractBranch |
branch
The
AbstractBranch instance which owns the content |
private List |
branchContent
The content of the Branch which is modified if I am modified
|
modCount
Constructor and Description |
---|
BackedList(AbstractBranch branch,
List branchContent) |
BackedList(AbstractBranch branch,
List branchContent,
int capacity) |
BackedList(AbstractBranch branch,
List branchContent,
List initialContent) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object object) |
boolean |
add(Object object) |
boolean |
addAll(Collection collection) |
boolean |
addAll(int index,
Collection collection) |
void |
addLocal(Object object)
Performs a local addition which is not forward through to the
Branch or backing list
|
protected Node |
asNode(Object object) |
void |
clear() |
Object |
remove(int index) |
boolean |
remove(Object object) |
Object |
set(int index,
Object object) |
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
private List branchContent
private AbstractBranch branch
AbstractBranch
instance which owns the contentpublic BackedList(AbstractBranch branch, List branchContent)
public BackedList(AbstractBranch branch, List branchContent, int capacity)
public BackedList(AbstractBranch branch, List branchContent, List initialContent)
public boolean addAll(Collection collection)
public boolean addAll(int index, Collection collection)
public void clear()
public void addLocal(Object object)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses