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, subList
retainAll, toString
public ContentListFacade(AbstractBranch branch, List branchContent)
public boolean add(Object object)
add
in interface Collection
add
in interface List
add
in class AbstractList
public void add(int index, Object object)
add
in interface List
add
in class AbstractList
public Object set(int index, Object object)
set
in interface List
set
in class AbstractList
public boolean remove(Object object)
remove
in interface Collection
remove
in interface List
remove
in class AbstractCollection
public Object remove(int index)
remove
in interface List
remove
in class AbstractList
public boolean addAll(Collection collection)
addAll
in interface Collection
addAll
in interface List
addAll
in class AbstractCollection
public boolean addAll(int index, Collection collection)
addAll
in interface List
addAll
in class AbstractList
public void clear()
clear
in interface Collection
clear
in interface List
clear
in class AbstractList
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
isEmpty
in class AbstractCollection
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
contains
in class AbstractCollection
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
containsAll
in class AbstractCollection
public Object get(int index)
get
in interface List
get
in class AbstractList
public int indexOf(Object o)
indexOf
in interface List
indexOf
in class AbstractList
public int lastIndexOf(Object o)
lastIndexOf
in interface List
lastIndexOf
in class AbstractList
protected List getBackingList()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.