public final class GriffonFXCollections extends Object
Modifier and Type | Method and Description |
---|---|
static <E> ObservableStream<E> |
observableStream(ObservableList<E> list) |
static <K,V> ObservableStream<V> |
observableStream(ObservableMap<K,V> map) |
static <E> ObservableStream<E> |
observableStream(ObservableSet<E> set) |
static <E> ObservableList<E> |
uiThreadAwareObservableList(ObservableList<E> source)
Wraps an ObservableList, publishing updates inside the UI thread.
|
static <K,V> ObservableMap<K,V> |
uiThreadAwareObservableMap(ObservableMap<K,V> source)
Wraps an ObservableMap, publishing updates inside the UI thread.
|
static <E> ObservableSet<E> |
uiThreadAwareObservableSet(ObservableSet<E> source)
Wraps an ObservableSet, publishing updates inside the UI thread.
|
public static <E> ObservableList<E> uiThreadAwareObservableList(@Nonnull ObservableList<E> source)
E
- the list's parameter type.source
- the ObservableList to be wrappedpublic static <E> ObservableSet<E> uiThreadAwareObservableSet(@Nonnull ObservableSet<E> source)
E
- the set's parameter type.source
- the ObservableSet to be wrappedpublic static <K,V> ObservableMap<K,V> uiThreadAwareObservableMap(@Nonnull ObservableMap<K,V> source)
K
- the type of keys maintained by the mapV
- the type of mapped valuessource
- the ObservableMap to be wrappedpublic static <E> ObservableStream<E> observableStream(@Nonnull ObservableList<E> list)
public static <E> ObservableStream<E> observableStream(@Nonnull ObservableSet<E> set)
public static <K,V> ObservableStream<V> observableStream(@Nonnull ObservableMap<K,V> map)