GroupedObservable
Observable that has been grouped by key, the value of which can be obtained with getKey().Note
A GroupedObservable will cache the items it is to emit until such time as it
is subscribed to. For this reason, in order to avoid memory leaks, you should not simply ignore those
GroupedObservables that do not concern you. Instead, you can signal to them that they
may discard their buffers by applying an operator like take(0) to them.
Observable#groupBy(Func1), ReactiveX documentation: GroupBy
| Modifier and Type | Field and Description |
|---|---|
| private final K |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the key K, the type of the items that this Observable emits T> GroupedObservable | Returns: a GroupedObservable that, when aSubscriber subscribes to it, will execute the specified
functionthe key value key, Observable.a function that accepts an fSubscriber<T>, and invokes its onNext, onError, and onCompleted methods as appropriateReturns an Observable that will execute the specified function when a |
| public static < the key type K, the value type T> GroupedObservable | Returns: aGroupedObservable representation of o, with key keythe key to identify the group of items emitted by this key, final Observable<T> GroupedObservablethe o)Observable to convertConverts an |
| public K | Returns: the key that the items emitted by thisGroupedObservable were grouped byReturns the key that identifies the group of items emitted by this |
| key | back to summary |
|---|---|
| private final K key | |
| GroupedObservable | back to summary |
|---|---|
| protected GroupedObservable(K key, Observable. | |
| create | back to summary |
|---|---|
| public static <K, T> GroupedObservable Returns an Observable that will execute the specified function when a
Write the function you pass to
A well-formed Observable must invoke either the Subscriber's See Rx Design Guidelines (PDF) for detailed information.
| |
| from | back to summary |
|---|---|
| public static <K, T> GroupedObservable Converts an
| |
| getKey | back to summary |
|---|---|
| public K getKey() Returns the key that identifies the group of items emitted by this
| |