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