public class RxSortedSet<T> extends RxBox.Default<ImmutableSortedSet<T>>
RxBox
<ImmutableSortedSet
<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 |
RxSortedSet(ImmutableSortedSet<T> initial)
Initally holds the given collection.
|
Modifier and Type | Method and Description |
---|---|
ImmutableSortedSet<T> |
mutate(Consumer<NavigableSet<T>> mutator)
Mutates this set.
|
static <T> RxSortedSet<T> |
of(Set<T> initial)
Creates an RxSet with the given initial value.
|
static <T> RxSortedSet<T> |
of(SortedSet<T> initial)
Creates an RxSet with the given initial value.
|
static <T> RxSortedSet<T> |
ofEmpty()
Creates an RxSet with an initially empty value.
|
void |
set(Set<T> value)
Sets the value of this set.
|
void |
set(SortedSet<T> value)
Sets the value of this set.
|
asObservable, get, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
combineLatest, from, map
protected RxSortedSet(ImmutableSortedSet<T> initial)
public static <T> RxSortedSet<T> ofEmpty()
public static <T> RxSortedSet<T> of(SortedSet<T> initial)
public static <T> RxSortedSet<T> of(Set<T> initial)
public ImmutableSortedSet<T> mutate(Consumer<NavigableSet<T>> mutator)