public class ContentListFacade<T extends Node> extends AbstractList<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.
modCount| Constructor and Description |
|---|
ContentListFacade(AbstractBranch branch,
List<T> branchContent) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T node) |
boolean |
add(T node) |
boolean |
addAll(Collection<? extends T> collection) |
boolean |
addAll(int index,
Collection<? extends T> collection) |
protected Node |
asNode(Object object) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
get(int index) |
protected List<T> |
getBackingList() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
int |
lastIndexOf(Object o) |
T |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> c) |
T |
set(int index,
T node) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
equals, hashCode, iterator, listIterator, listIterator, removeRange, subListretainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, retainAll, sort, spliteratorparallelStream, removeIf, streampublic ContentListFacade(AbstractBranch branch, List<T> branchContent)
public boolean add(T node)
public void add(int index,
T node)
public boolean remove(Object object)
public T remove(int index)
public boolean addAll(Collection<? extends T> collection)
public boolean addAll(int index,
Collection<? extends T> collection)
public void clear()
public boolean removeAll(Collection<?> c)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends Node>containsAll in interface List<T extends Node>containsAll in class AbstractCollection<T extends Node>public T get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<T extends Node>lastIndexOf in class AbstractList<T extends Node>Copyright © 2025. All rights reserved.