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
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.14 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractBranch
TheAbstractBranch
instance which owns the contentThe content of the Branch which is modified if I am modifiedFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionBackedList
(AbstractBranch branch, List<Node> branchContent) BackedList
(AbstractBranch branch, List<Node> branchContent, int capacity) BackedList
(AbstractBranch branch, List<Node> branchContent, List<T> initialContent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) void
Performs a local addition which is not forward through to the Branch or backing listvoid
clear()
remove
(int index) boolean
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
-
Field Details
-
branchContent
The content of the Branch which is modified if I am modified -
branch
TheAbstractBranch
instance which owns the content
-
-
Constructor Details
-
BackedList
-
BackedList
-
BackedList
-
-
Method Details
-
add
-
add
-
set
-
remove
-
remove
-
addAll
-
addAll
-
clear
public void clear() -
addLocal
Performs a local addition which is not forward through to the Branch or backing list- Parameters:
node
- DOCUMENT ME!
-