Package org.dom4j.tree
Class ContentListFacade<T extends Node>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
org.dom4j.tree.ContentListFacade<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<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 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 java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, retainAll, 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:
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
-