public abstract class

GroupedObservable

extends Observable<T>
java.lang.Object
   ↳ io.reactivex.Observable<T>
     ↳ io.reactivex.observables.GroupedObservable<K, T>

Class Overview

An 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.

Summary

Protected Constructors
GroupedObservable(K key)
Constructs a GroupedObservable with the given key.
Public Methods
K getKey()
Returns the key that identifies the group of items emitted by this GroupedObservable.
[Expand]
Inherited Methods
From class io.reactivex.Observable
From class java.lang.Object
From interface io.reactivex.ObservableSource

Protected Constructors

protected GroupedObservable (K key)

Constructs a GroupedObservable with the given key.

Parameters
key the key

Public Methods

public K getKey ()

Returns the key that identifies the group of items emitted by this GroupedObservable.

Returns
  • the key that the items emitted by this GroupedObservable were grouped by