Package org.dom4j.tree
Class ContentListFacade<T extends Node>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
org.dom4j.tree.ContentListFacade<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
ContentListFacade represents a facade of the content of a
Branch which is returned via calls to the Branch.content() method to allow users to modify the content of a
Branch directly using the List interface. This list
is backed by the branch such that changes to the list will be reflected in
the branch and changes to the branch will be reflected in this list.
- Version:
- $Revision: 1.11 $
- Author:
- James Strachan
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) protected Nodevoidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()intremove(int index) booleanbooleanremoveAll(Collection<?> c) intsize()Object[]toArray()Object[]Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator
-
Constructor Details
-
ContentListFacade
-
-
Method Details
-
add
-
add
-
set
-
remove
-
remove
-
addAll
-
addAll
-
clear
public void clear() -
removeAll
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
toArray
-
toArray
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends Node>- Specified by:
containsAllin interfaceList<T extends Node>- Overrides:
containsAllin classAbstractCollection<T extends Node>
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T extends Node>- Overrides:
lastIndexOfin classAbstractList<T extends Node>
-
asNode
-
getBackingList
-