org.dom4j.tree
Class BackedList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--org.dom4j.tree.BackedList
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
- 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.
- Version:
- $Revision: 1.6 $
- Author:
- James Strachan
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, size, toArray, toArray, trimToSize |
BackedList
public BackedList(AbstractBranch branch,
List branchContent)
BackedList
public BackedList(AbstractBranch branch,
List branchContent,
int capacity)
BackedList
public BackedList(AbstractBranch branch,
List branchContent,
List initialContent)
add
public boolean add(Object object)
- Specified by:
add in interface List- Overrides:
add in class ArrayList
add
public void add(int index,
Object object)
- Specified by:
add in interface List- Overrides:
add in class ArrayList
set
public Object set(int index,
Object object)
- Specified by:
set in interface List- Overrides:
set in class ArrayList
remove
public boolean remove(Object object)
- Specified by:
remove in interface List- Overrides:
remove in class AbstractCollection
remove
public Object remove(int index)
- Specified by:
remove in interface List- Overrides:
remove in class ArrayList
addAll
public boolean addAll(Collection collection)
- Specified by:
addAll in interface List- Overrides:
addAll in class ArrayList
addAll
public boolean addAll(int index,
Collection collection)
- Specified by:
addAll in interface List- Overrides:
addAll in class ArrayList
clear
public void clear()
- Specified by:
clear in interface List- Overrides:
clear in class ArrayList
addLocal
public void addLocal(Object object)
- Performs a local addition which is not forward through to the
Branch or backing list
asNode
protected Node asNode(Object object)
Copyright © 2002-2003 MetaStuff Ltd.. All Rights Reserved.