org.dom4j.tree
Class BackedList<T extends Node>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
org.dom4j.tree.LazyList<T>
org.dom4j.tree.BackedList<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>
public class BackedList<T extends Node>
- extends LazyList<T>
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 $
- Author:
- James Strachan
| Fields inherited from class java.util.AbstractList |
modCount |
|
Method Summary |
void |
add(int index,
T node)
|
boolean |
add(T node)
|
void |
addLocal(T node)
Performs a local addition which is not forward through to the Branch or
backing list |
void |
clear()
|
T |
remove(int index)
|
boolean |
remove(Node node)
|
T |
set(int index,
T node)
|
| Methods inherited from class org.dom4j.tree.LazyList |
addAll, addAll, addElement, createIndexedList, get, getEntry, getEntryHeader, listIterator, removeEntry, removeRange, size, subList |
| Methods inherited from class java.util.AbstractSequentialList |
iterator |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, indexOf, lastIndexOf, listIterator |
| Methods inherited from class java.util.AbstractCollection |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
BackedList
public BackedList(AbstractBranch branch,
java.util.List<Node> branchContent)
BackedList
public BackedList(AbstractBranch branch,
java.util.List<Node> branchContent,
java.util.List<T> initialContent)
add
public boolean add(T node)
- Specified by:
add in interface java.util.Collection<T extends Node>- Specified by:
add in interface java.util.List<T extends Node>- Overrides:
add in class LazyList<T extends Node>
add
public void add(int index,
T node)
- Specified by:
add in interface java.util.List<T extends Node>- Overrides:
add in class LazyList<T extends Node>
set
public T set(int index,
T node)
- Specified by:
set in interface java.util.List<T extends Node>- Overrides:
set in class LazyList<T extends Node>
remove
public boolean remove(Node node)
remove
public T remove(int index)
- Specified by:
remove in interface java.util.List<T extends Node>- Overrides:
remove in class LazyList<T extends Node>
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<T extends Node>- Specified by:
clear in interface java.util.List<T extends Node>- Overrides:
clear in class LazyList<T extends Node>
addLocal
public void addLocal(T node)
- Performs a local addition which is not forward through to the Branch or
backing list
- Parameters:
object - DOCUMENT ME!
Copyright © 2001-2008. All Rights Reserved.