public class BackedList
extends java.util.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.
| Constructor | Description |
|---|---|
BackedList(AbstractBranch branch,
java.util.List branchContent) |
|
BackedList(AbstractBranch branch,
java.util.List branchContent,
int capacity) |
|
BackedList(AbstractBranch branch,
java.util.List branchContent,
java.util.List initialContent) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int index,
java.lang.Object object) |
|
boolean |
add(java.lang.Object object) |
|
boolean |
addAll(int index,
java.util.Collection collection) |
|
boolean |
addAll(java.util.Collection collection) |
|
void |
addLocal(java.lang.Object object) |
Performs a local addition which is not forward through to the Branch or
backing list
|
protected Node |
asNode(java.lang.Object object) |
|
void |
clear() |
|
java.lang.Object |
remove(int index) |
|
boolean |
remove(java.lang.Object object) |
|
java.lang.Object |
set(int index,
java.lang.Object object) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic BackedList(AbstractBranch branch, java.util.List branchContent)
public BackedList(AbstractBranch branch, java.util.List branchContent, int capacity)
public BackedList(AbstractBranch branch, java.util.List branchContent, java.util.List initialContent)
public boolean add(java.lang.Object object)
add in class java.util.ArrayListpublic void add(int index,
java.lang.Object object)
add in class java.util.ArrayListpublic java.lang.Object set(int index,
java.lang.Object object)
set in class java.util.ArrayListpublic boolean remove(java.lang.Object object)
remove in class java.util.ArrayListpublic java.lang.Object remove(int index)
remove in class java.util.ArrayListpublic boolean addAll(java.util.Collection collection)
addAll in class java.util.ArrayListpublic boolean addAll(int index,
java.util.Collection collection)
addAll in class java.util.ArrayListpublic void clear()
clear in class java.util.ArrayListpublic void addLocal(java.lang.Object object)
object - DOCUMENT ME!protected Node asNode(java.lang.Object object)
Copyright ? 2005 MetaStuff Ltd. All Rights Reserved. Hosted by