public class RxSet<T> extends RxBox.Default<ImmutableSet<T>>
RxBox
<ImmutableSet
<T>>
with convenience methods for creating and mutating the set.RxBox.Default<T>
Box.Dbl, Box.Int, Box.Nullable<T>
Modifier | Constructor and Description |
---|---|
protected |
RxSet(ImmutableSet<T> initial)
Initally holds the given collection.
|
Modifier and Type | Method and Description |
---|---|
ImmutableSet<T> |
mutate(Consumer<Set<T>> mutator)
Mutates this set.
|
static <T> RxSet<T> |
of(Set<T> initial)
Creates an RxSet with the given initial value.
|
static <T> RxSet<T> |
ofEmpty()
Creates an RxSet with an initially empty value.
|
void |
set(Set<T> value)
Removes the given value from the set.
|
asObservable, get, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
combineLatest, from, map
protected RxSet(ImmutableSet<T> initial)