public class RxMap<K,V> extends RxBox.Default<ImmutableMap<K,V>>
RxBox
<ImmutableMap
<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 |
RxMap(ImmutableMap<K,V> initial)
Initally holds the given collection.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMap<K,V> |
mutate(Consumer<Map<K,V>> mutator)
Mutates this map.
|
static <K,V> RxMap<K,V> |
of(Map<K,V> initial)
Creates an RxMap with the given initial value.
|
static <K,V> RxMap<K,V> |
ofEmpty()
Creates an RxMap with an initially empty value.
|
void |
set(Map<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 RxMap(ImmutableMap<K,V> initial)