java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable
, java.util.Collection
, java.util.List
, java.util.RandomAccess
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) |
public 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.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
public void add(int index, java.lang.Object object)
add
in interface java.util.List
add
in class java.util.ArrayList
public java.lang.Object set(int index, java.lang.Object object)
set
in interface java.util.List
set
in class java.util.ArrayList
public boolean remove(java.lang.Object object)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class java.util.ArrayList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.ArrayList
public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.ArrayList
public boolean addAll(int index, java.util.Collection collection)
addAll
in interface java.util.List
addAll
in class java.util.ArrayList
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.ArrayList
public 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