Package org.dom4j.tree
Class ContentListFacade
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
org.dom4j.tree.ContentListFacade
- All Implemented Interfaces:
Iterable
,Collection
,List
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 collection) boolean
addAll
(Collection collection) protected Node
void
clear()
boolean
boolean
get
(int index) protected List
int
boolean
isEmpty()
int
remove
(int index) boolean
boolean
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
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceList
- Overrides:
add
in classAbstractList
-
add
- Specified by:
add
in interfaceList
- Overrides:
add
in classAbstractList
-
set
- Specified by:
set
in interfaceList
- Overrides:
set
in classAbstractList
-
remove
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceList
- Overrides:
remove
in classAbstractCollection
-
remove
- Specified by:
remove
in interfaceList
- Overrides:
remove
in classAbstractList
-
addAll
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
- Overrides:
addAll
in classAbstractCollection
-
addAll
- Specified by:
addAll
in interfaceList
- Overrides:
addAll
in classAbstractList
-
clear
public void clear()- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceList
- Overrides:
clear
in classAbstractList
-
removeAll
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceList
- Overrides:
removeAll
in classAbstractCollection
-
size
public int size()- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
- Specified by:
size
in classAbstractCollection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceList
- Overrides:
isEmpty
in classAbstractCollection
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceList
- Overrides:
contains
in classAbstractCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
- Overrides:
toArray
in classAbstractCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
- Overrides:
toArray
in classAbstractCollection
-
containsAll
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceList
- Overrides:
containsAll
in classAbstractCollection
-
get
- Specified by:
get
in interfaceList
- Specified by:
get
in classAbstractList
-
indexOf
- Specified by:
indexOf
in interfaceList
- Overrides:
indexOf
in classAbstractList
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList
- Overrides:
lastIndexOf
in classAbstractList
-
asNode
-
getBackingList
-