SOURCE
- the source typeVIEW
- the view typepublic abstract class ListView<SOURCE,VIEW> extends AbstractList<VIEW>
ViewProvider
implementation. Changes to the view list are reflected within the source list and vice versa.modCount
Constructor and Description |
---|
ListView() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
VIEW element) |
boolean |
add(VIEW e) |
void |
clear() |
VIEW |
get(int index) |
protected abstract List<SOURCE> |
getDelegate() |
protected abstract ViewProvider<SOURCE,VIEW> |
getViewProvider() |
Iterator<VIEW> |
iterator() |
ListIterator<VIEW> |
listIterator() |
ListIterator<VIEW> |
listIterator(int index) |
VIEW |
remove(int index) |
VIEW |
set(int index,
VIEW element) |
int |
size() |
addAll, equals, hashCode, indexOf, lastIndexOf, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected abstract ViewProvider<SOURCE,VIEW> getViewProvider()
public VIEW get(int index)
public int size()
size
in interface Collection<VIEW>
size
in interface List<VIEW>
size
in class AbstractCollection<VIEW>
public boolean add(VIEW e)
add
in interface Collection<VIEW>
add
in interface List<VIEW>
add
in class AbstractList<VIEW>
public void add(int index, VIEW element)
public VIEW remove(int index)
public void clear()
clear
in interface Collection<VIEW>
clear
in interface List<VIEW>
clear
in class AbstractList<VIEW>
public ListIterator<VIEW> listIterator()
listIterator
in interface List<VIEW>
listIterator
in class AbstractList<VIEW>
public ListIterator<VIEW> listIterator(int index)
listIterator
in interface List<VIEW>
listIterator
in class AbstractList<VIEW>
Copyright © 2016. All rights reserved.