Package org.dom4j.tree
Class BackedList<T extends Node>
- java.lang.Object
 - 
- java.util.AbstractCollection<E>
 - 
- java.util.AbstractList<E>
 - 
- java.util.ArrayList<T>
 - 
- org.dom4j.tree.BackedList<T>
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
public class BackedList<T extends Node> extends ArrayList<T>
BackedListrepresents a list of content of aBranch. Changes to the list will be reflected in the branch, though changes to the branch will not be reflected in this list.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class java.util.AbstractList
modCount 
 - 
 
- 
Constructor Summary
Constructors Constructor Description BackedList(AbstractBranch branch, List<Node> branchContent)BackedList(AbstractBranch branch, List<Node> branchContent, int capacity)BackedList(AbstractBranch branch, List<Node> branchContent, List<T> initialContent) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T node)booleanadd(T node)booleanaddAll(int index, Collection<? extends T> collection)booleanaddAll(Collection<? extends T> collection)voidaddLocal(T node)Performs a local addition which is not forward through to the Branch or backing listvoidclear()Tremove(int index)booleanremove(Object object)Tset(int index, T node)- 
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize 
- 
Methods inherited from class java.util.AbstractCollection
containsAll, toString 
- 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray 
- 
Methods inherited from interface java.util.List
containsAll 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
BackedList
public BackedList(AbstractBranch branch, List<Node> branchContent)
 
- 
BackedList
public BackedList(AbstractBranch branch, List<Node> branchContent, int capacity)
 
- 
BackedList
public BackedList(AbstractBranch branch, List<Node> branchContent, List<T> initialContent)
 
 - 
 
- 
Method Detail
- 
add
public boolean add(T node)
 
- 
add
public void add(int index, T node) 
- 
remove
public boolean remove(Object object)
 
- 
remove
public T remove(int index)
 
- 
addAll
public boolean addAll(Collection<? extends T> collection)
 
- 
addAll
public boolean addAll(int index, Collection<? extends T> collection) 
- 
clear
public void clear()
 
- 
addLocal
public void addLocal(T node)
Performs a local addition which is not forward through to the Branch or backing list- Parameters:
 node- DOCUMENT ME!
 
 - 
 
 -