public final class OperatorToMultimap<T,K,V> extends java.lang.Object implements Observable.Operator<java.util.Map<K,java.util.Collection<V>>,T>
Modifier and Type | Class and Description |
---|---|
static class |
OperatorToMultimap.DefaultMultimapCollectionFactory<K,V>
The default collection factory for a key in the multimap returning
an ArrayList independent of the key.
|
static class |
OperatorToMultimap.DefaultToMultimapFactory<K,V>
The default multimap factory returning a HashMap.
|
Constructor and Description |
---|
OperatorToMultimap(Func1<? super T,? extends K> keySelector,
Func1<? super T,? extends V> valueSelector)
ToMultimap with key selector, custom value selector,
default HashMap factory and default ArrayList collection factory.
|
OperatorToMultimap(Func1<? super T,? extends K> keySelector,
Func1<? super T,? extends V> valueSelector,
Func0<? extends java.util.Map<K,java.util.Collection<V>>> mapFactory)
ToMultimap with key selector, custom value selector,
custom Map factory and default ArrayList collection factory.
|
OperatorToMultimap(Func1<? super T,? extends K> keySelector,
Func1<? super T,? extends V> valueSelector,
Func0<? extends java.util.Map<K,java.util.Collection<V>>> mapFactory,
Func1<? super K,? extends java.util.Collection<V>> collectionFactory)
ToMultimap with key selector, custom value selector,
custom Map factory and custom collection factory.
|
Modifier and Type | Method and Description |
---|---|
Subscriber<? super T> |
call(Subscriber<? super java.util.Map<K,java.util.Collection<V>>> subscriber) |
public OperatorToMultimap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector)
public OperatorToMultimap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector, Func0<? extends java.util.Map<K,java.util.Collection<V>>> mapFactory)
public OperatorToMultimap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector, Func0<? extends java.util.Map<K,java.util.Collection<V>>> mapFactory, Func1<? super K,? extends java.util.Collection<V>> collectionFactory)
public Subscriber<? super T> call(Subscriber<? super java.util.Map<K,java.util.Collection<V>>> subscriber)
call
in interface Func1<Subscriber<? super java.util.Map<K,java.util.Collection<V>>>,Subscriber<? super T>>