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 and 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 and Description |
|---|---|
void |
add(int index,
java.lang.Object object) |
boolean |
add(java.lang.Object object) |
boolean |
addAll(java.util.Collection collection) |
boolean |
addAll(int index,
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, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeRange, retainAll, size, 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 interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListpublic void add(int index,
java.lang.Object object)
add in interface java.util.Listadd in class java.util.ArrayListpublic java.lang.Object set(int index,
java.lang.Object object)
set in interface java.util.Listset in class java.util.ArrayListpublic boolean remove(java.lang.Object object)
remove in interface java.util.Collectionremove in interface java.util.Listremove in class java.util.ArrayListpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in class java.util.ArrayListpublic boolean addAll(java.util.Collection collection)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class java.util.ArrayListpublic boolean addAll(int index,
java.util.Collection collection)
addAll in interface java.util.ListaddAll in class java.util.ArrayListpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear 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