public class ContentListFacade extends AbstractList
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.
modCount| Constructor and Description |
|---|
ContentListFacade(AbstractBranch branch,
List branchContent) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object object) |
boolean |
add(Object object) |
boolean |
addAll(Collection collection) |
boolean |
addAll(int index,
Collection collection) |
protected Node |
asNode(Object object) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
Object |
get(int index) |
protected List |
getBackingList() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
int |
lastIndexOf(Object o) |
Object |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection c) |
Object |
set(int index,
Object object) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
equals, hashCode, iterator, listIterator, listIterator, removeRange, subListretainAll, toStringpublic ContentListFacade(AbstractBranch branch, List branchContent)
public boolean add(Object object)
add in interface Collectionadd in interface Listadd in class AbstractListpublic void add(int index,
Object object)
add in interface Listadd in class AbstractListpublic Object set(int index, Object object)
set in interface Listset in class AbstractListpublic boolean remove(Object object)
remove in interface Collectionremove in interface Listremove in class AbstractCollectionpublic Object remove(int index)
remove in interface Listremove in class AbstractListpublic boolean addAll(Collection collection)
addAll in interface CollectionaddAll in interface ListaddAll in class AbstractCollectionpublic boolean addAll(int index,
Collection collection)
addAll in interface ListaddAll in class AbstractListpublic void clear()
clear in interface Collectionclear in interface Listclear in class AbstractListpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListisEmpty in class AbstractCollectionpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in class AbstractCollectionpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class AbstractCollectionpublic Object get(int index)
get in interface Listget in class AbstractListpublic int indexOf(Object o)
indexOf in interface ListindexOf in class AbstractListpublic int lastIndexOf(Object o)
lastIndexOf in interface ListlastIndexOf in class AbstractListprotected List getBackingList()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.