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 AbstractBranch
TheAbstractBranch
instance 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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) protected Node
void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
int
remove
(int index) boolean
boolean
removeAll
(Collection<?> c) int
size()
Object[]
toArray()
Object[]
Methods inherited from class AbstractList
equals, hashCode, iterator, listIterator, listIterator, removeRange, subList
Methods inherited from class AbstractCollection
retainAll, toString
Methods inherited from interface Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator
-
Field Details
-
branchContent
-
branch
TheAbstractBranch
instance 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:
containsAll
in interfaceCollection<T extends Node>
- Specified by:
containsAll
in interfaceList<T extends Node>
- Overrides:
containsAll
in classAbstractCollection<T extends Node>
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T extends Node>
- Overrides:
lastIndexOf
in classAbstractList<T extends Node>
-
asNode
-
getBackingList
-