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 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractBranchTheAbstractBranchinstance which owns the contentThe content of the Branch which is modified if I am modifiedFields inherited from class 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 AbstractList
equals, hashCode, iterator, listIterator, listIterator, removeRange, subListMethods inherited from class AbstractCollection
retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator
-
Field Details
-
branchContent
-
branch
TheAbstractBranchinstance which owns the content
-
-
Constructor Details
-
ContentListFacade
-
-
Method Details
-
add
-
add
-
set
-
remove
-
remove
-
addAll
-
addAll
-
clear
-
removeAll
-
size
-
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
-