public final class OperatorToMap<T,K,V> extends java.lang.Object implements Observable.Operator<java.util.Map<K,V>,T>
Modifier and Type | Class and Description |
---|---|
static class |
OperatorToMap.DefaultToMapFactory<K,V>
The default map factory.
|
Constructor and Description |
---|
OperatorToMap(Func1<? super T,? extends K> keySelector,
Func1<? super T,? extends V> valueSelector)
ToMap with key selector, value selector and default HashMap factory.
|
OperatorToMap(Func1<? super T,? extends K> keySelector,
Func1<? super T,? extends V> valueSelector,
Func0<? extends java.util.Map<K,V>> mapFactory)
ToMap with key selector, value selector and custom Map factory.
|
Modifier and Type | Method and Description |
---|---|
Subscriber<? super T> |
call(Subscriber<? super java.util.Map<K,V>> subscriber) |
public OperatorToMap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector)
public Subscriber<? super T> call(Subscriber<? super java.util.Map<K,V>> subscriber)
call
in interface Func1<Subscriber<? super java.util.Map<K,V>>,Subscriber<? super T>>