| Modifier and Type | Class and Description |
|---|---|
| private static class | OnSubscribeToMultimap.DefaultMultimapCollectionFactory<
the key type K, the value type V>The default collection factory for a key in the multimap returning an ArrayList independent of the key. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Func1 | |
| private final Func1 | |
| private final Func0 | |
| private final Observable | |
| private final Func1 |
| Access | Constructor and Description |
|---|---|
| public | OnSubscribeToMultimap(Observable<T>
the source Observable instance source, Func1<? super T, ? extends K> the function extracting the map-key from the main value keySelector, Func1<? super T, ? extends V> the function extracting the map-value from the main value valueSelector)ToMultimap with key selector, custom value selector, default HashMap factory and default ArrayList collection factory. |
| public | OnSubscribeToMultimap(Observable<T>
the source Observable instance source, Func1<? super T, ? extends K> the function extracting the map-key from the main value keySelector, Func1<? super T, ? extends V> the function extracting the map-value from the main value valueSelector, Func0<? extends Map<K, Collection<V>>> function that returns a Map instance to store keys and values into mapFactory)ToMultimap with key selector, custom value selector, custom Map factory and default ArrayList collection factory. |
| public | OnSubscribeToMultimap(Observable<T>
the observable source source, Func1<? super T, ? extends K> the function extracting the map-key from the main value keySelector, Func1<? super T, ? extends V> the function extracting the map-value from the main value valueSelector, Func0<? extends Map<K, Collection<V>>> function that returns a Map instance to store keys and values into mapFactory, Func1<? super K, ? extends Collection<V>> function that returns a Collection for a particular key to store values into collectionFactory)ToMultimap with key selector, custom value selector, custom Map factory and custom collection factory. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | call()
Implements rx. |
| public void | call(final Subscriber<? super Map<K, Collection<V>>> subscriber)
Implements rx. |
| collectionFactory | back to summary |
|---|---|
| private final Func1<? super K, ? extends Collection<V>> collectionFactory | |
| keySelector | back to summary |
|---|---|
| private final Func1<? super T, ? extends K> keySelector | |
| mapFactory | back to summary |
|---|---|
| private final Func0<? extends Map<K, Collection<V>>> mapFactory | |
| source | back to summary |
|---|---|
| private final Observable<T> source | |
| valueSelector | back to summary |
|---|---|
| private final Func1<? super T, ? extends V> valueSelector | |
| OnSubscribeToMultimap | back to summary |
|---|---|
| public OnSubscribeToMultimap(Observable<T> source, 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.
| |
| OnSubscribeToMultimap | back to summary |
|---|---|
| public OnSubscribeToMultimap(Observable<T> source, Func1<? super T, ? extends K> keySelector, Func1<? super T, ? extends V> valueSelector, Func0<? extends Map<K, Collection<V>>> mapFactory) ToMultimap with key selector, custom value selector, custom Map factory and default ArrayList collection factory.
| |
| OnSubscribeToMultimap | back to summary |
|---|---|
| public OnSubscribeToMultimap(Observable<T> source, Func1<? super T, ? extends K> keySelector, Func1<? super T, ? extends V> valueSelector, Func0<? extends Map<K, Collection<V>>> mapFactory, Func1<? super K, ? extends Collection<V>> collectionFactory) ToMultimap with key selector, custom value selector, custom Map factory and custom collection factory.
| |
| call | back to summary |
|---|---|
| public Map Implements rx. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| call | back to summary |
|---|---|
| public void call(final Subscriber<? super Map<K, Collection<V>>> subscriber) Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final OnSubscribeToMultimap. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | |
| pack-priv static <K, V> OnSubscribeToMultimap. |
| INSTANCE | back to summary |
|---|---|
| private static final OnSubscribeToMultimap. | |
| DefaultMultimapCollectionFactory | back to summary |
|---|---|
| private DefaultMultimapCollectionFactory() | |
| call | back to summary |
|---|---|
| public Collection Implements rx.
| |
| instance | back to summary |
|---|---|
pack-priv static <K, V> OnSubscribeToMultimap.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Func1 | |
| private final Func1 | |
| private final Func1 |
| Access | Constructor and Description |
|---|---|
| pack-priv | ToMultimapSubscriber(Subscriber<? super Map<K, Collection<V>>> subscriber, Map<K, Collection<V>> map, Func1<? super T, ? extends K> keySelector, Func1<? super T, ? extends V> valueSelector, Func1<? super K, ? extends Collection<V>> collectionFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| public void | onStart()
Overrides rx. |
| collectionFactory | back to summary |
|---|---|
| private final Func1<? super K, ? extends Collection<V>> collectionFactory | |
| keySelector | back to summary |
|---|---|
| private final Func1<? super T, ? extends K> keySelector | |
| valueSelector | back to summary |
|---|---|
| private final Func1<? super T, ? extends V> valueSelector | |
| ToMultimapSubscriber | back to summary |
|---|---|
| pack-priv ToMultimapSubscriber(Subscriber<? super Map<K, Collection<V>>> subscriber, Map<K, Collection<V>> map, Func1<? super T, ? extends K> keySelector, Func1<? super T, ? extends V> valueSelector, Func1<? super K, ? extends Collection<V>> collectionFactory) | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| onStart | back to summary |
|---|---|
| public void onStart() Overrides rx. Doc from rx. This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber. Override this method to add any useful initialization to your subscription, for instance to initiate backpressure.
| |