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>
 
 public class ContentListFacade<T extends Node> extends AbstractList<T> ContentListFacaderepresents a facade of the content of aBranchwhich is returned via calls to theBranch.content()method to allow users to modify the content of aBranchdirectly using theListinterface. 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.
- 
- 
Field Summary- 
Fields inherited from class java.util.AbstractListmodCount
 
- 
 - 
Constructor SummaryConstructors Constructor Description ContentListFacade(AbstractBranch branch, List<T> branchContent)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T node)booleanadd(T node)booleanaddAll(int index, Collection<? extends T> collection)booleanaddAll(Collection<? extends T> collection)protected NodeasNode(Object object)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)Tget(int index)protected List<T>getBackingList()intindexOf(Object o)booleanisEmpty()intlastIndexOf(Object o)Tremove(int index)booleanremove(Object object)booleanremoveAll(Collection<?> c)Tset(int index, T node)intsize()Object[]toArray()Object[]toArray(Object[] a)- 
Methods inherited from class java.util.AbstractListequals, hashCode, iterator, listIterator, listIterator, removeRange, subList
 - 
Methods inherited from class java.util.AbstractCollectionretainAll, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.ListreplaceAll, retainAll, sort, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
ContentListFacadepublic ContentListFacade(AbstractBranch branch, List<T> branchContent) 
 
- 
 - 
Method Detail- 
addpublic boolean add(T node) 
 - 
addpublic void add(int index, T node)
 - 
removepublic boolean remove(Object object) 
 - 
removepublic T remove(int index) 
 - 
addAllpublic boolean addAll(Collection<? extends T> collection) 
 - 
addAllpublic boolean addAll(int index, Collection<? extends T> collection)
 - 
clearpublic void clear() 
 - 
removeAllpublic boolean removeAll(Collection<?> c) 
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
containspublic boolean contains(Object o) 
 - 
toArraypublic Object[] toArray() 
 - 
containsAllpublic boolean containsAll(Collection<?> c) - Specified by:
- containsAllin interface- Collection<T extends Node>
- Specified by:
- containsAllin interface- List<T extends Node>
- Overrides:
- containsAllin class- AbstractCollection<T extends Node>
 
 - 
getpublic T get(int index) 
 - 
indexOfpublic int indexOf(Object o) 
 - 
lastIndexOfpublic int lastIndexOf(Object o) - Specified by:
- lastIndexOfin interface- List<T extends Node>
- Overrides:
- lastIndexOfin class- AbstractList<T extends Node>
 
 
- 
 
-