public class AsyncDiffObservableList<T>
extends java.util.AbstractList<T>
| Constructor and Description |
|---|
AsyncDiffObservableList(<any> callback)
Creates a new DiffObservableList of type T, which runs the diff on a background thread using
AsyncListDiffer. |
AsyncDiffObservableList(<any> config)
Creates a new AsyncDiffObservableList of type T, which runs the diff on a background thread using
AsyncListDiffer. |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnListChangedCallback(<any> callback) |
boolean |
equals(java.lang.Object o) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator(int index) |
void |
removeOnListChangedCallback(<any> callback) |
int |
size() |
java.util.List<T> |
subList(int fromIndex,
int toIndex) |
void |
update(java.util.List<T> newItems)
Updates the list to the given items.
|
add, add, addAll, clear, iterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic AsyncDiffObservableList(<any> callback)
AsyncListDiffer.callback - The callback that controls the behavior of the DiffObservableList.public AsyncDiffObservableList(<any> config)
AsyncListDiffer.config - The config passed to AsyncListDiffer.public void update(java.util.List<T> newItems)
public void addOnListChangedCallback(<any> callback)
public void removeOnListChangedCallback(<any> callback)
public T get(int index)
public int size()
public int indexOf(java.lang.Object o)
public int lastIndexOf(java.lang.Object o)
public java.util.List<T> subList(int fromIndex, int toIndex)
public int hashCode()
public boolean equals(java.lang.Object o)