public class RxList<T> extends RxBox.Default<ImmutableList<T>>
RxBox<ImmutableList<T>>
with convenience methods for creating and mutating the list.RxBox.Default<T>Box.Dbl, Box.Int, Box.Nullable<T>| Modifier | Constructor and Description |
|---|---|
protected |
RxList(ImmutableList<T> initial)
Initally holds the given collection.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableList<T> |
mutate(Consumer<List<T>> mutator)
Mutates this list.
|
static <T> RxList<T> |
of(List<T> initial)
Creates an RxList with the given initial value.
|
static <T> RxList<T> |
ofEmpty()
Creates an RxList with an initially empty value.
|
void |
set(List<T> newSelection)
Sets the list to the given list.
|
asObservable, get, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombineLatest, from, mapprotected RxList(ImmutableList<T> initial)