T - type of elementspublic interface CollectionListener<T>
At initialization, the method elementsReady must be called once to set the collection's initial elements. Then the other methods are used to signal modifications.
| Modifier and Type | Interface and Description |
|---|---|
static class |
CollectionListener.Keep<T>
Keeps a collection of elements, such as listeners can be added asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
void |
elementsAdded(Collection<? extends T> elements)
Elements have been added.
|
void |
elementsChanged(Collection<? extends T> elements)
Elements have changed.
|
default void |
elementsReady(Collection<? extends T> elements)
First elements are ready.
|
void |
elementsRemoved(Collection<? extends T> elements)
Elements have been removed.
|
void |
error(Throwable error)
An error occured while getting elements.
|
default void elementsReady(Collection<? extends T> elements)
void elementsAdded(Collection<? extends T> elements)
void elementsRemoved(Collection<? extends T> elements)
void elementsChanged(Collection<? extends T> elements)
void error(Throwable error)
Copyright © 2019. All rights reserved.