RxJava



rx.observables
Class GroupedObservable<K,T>

java.lang.Object
  extended by rx.Observable<T>
      extended by rx.observables.GroupedObservable<K,T>
Type Parameters:
K - the type of the key
T - the type of the elements in the group

public class GroupedObservable<K,T>
extends Observable<T>

An Observable that has been grouped by a key whose value can be obtained using GroupedObservable.getKey()

See Also:
Observable.groupBy(Func1)

Nested Class Summary
 
Nested classes/interfaces inherited from class rx.Observable
Observable.OnSubscribeFunc<T>
 
Constructor Summary
GroupedObservable(K key, Observable.OnSubscribeFunc<T> onSubscribe)
           
 
Method Summary
 K getKey()
          Returns the key the elements in this observable were grouped by.
 
Methods inherited from class rx.Observable
aggregate, aggregate, all, amb, amb, amb, amb, amb, amb, amb, amb, amb, average, averageDoubles, averageFloats, averageLongs, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, cache, cast, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, concat, concat, concat, concat, concat, concat, concat, concat, concat, contains, count, create, debounce, debounce, defaultIfEmpty, defer, dematerialize, distinct, distinct, distinctUntilChanged, distinctUntilChanged, doOnCompleted, doOnEach, doOnEach, doOnEach, doOnEach, doOnError, elementAt, elementAtOrDefault, empty, empty, error, error, exists, filter, finallyDo, first, first, firstOrDefault, firstOrDefault, flatMap, from, from, from, from, from, from, from, from, from, from, from, from, from, from, from, groupBy, groupBy, ignoreElements, interval, interval, isEmpty, just, just, last, map, mapMany, mapWithIndex, materialize, max, max, maxBy, maxBy, merge, merge, merge, merge, merge, merge, merge, merge, merge, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, min, min, minBy, minBy, multicast, never, observeOn, ofType, onErrorResumeNext, onErrorResumeNext, onErrorReturn, onExceptionResumeNext, parallel, parallel, publish, publishLast, range, reduce, reduce, replay, retry, retry, sample, sample, scan, scan, sequenceEqual, sequenceEqual, skip, skipLast, skipWhile, skipWhileWithIndex, startWith, startWith, startWith, startWith, startWith, startWith, startWith, startWith, startWith, startWith, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, sum, sumDoubles, sumFloats, sumLongs, switchDo, switchOnNext, synchronize, synchronize, synchronize, take, takeFirst, takeFirst, takeLast, takeUntil, takeWhile, takeWhileWithIndex, throttleFirst, throttleFirst, throttleLast, throttleLast, throttleWithTimeout, throttleWithTimeout, timeInterval, timeInterval, timeout, timeout, timeout, timeout, timestamp, toBlockingObservable, toList, toSortedList, toSortedList, using, where, window, window, window, window, window, window, window, window, window, window, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupedObservable

public GroupedObservable(K key,
                         Observable.OnSubscribeFunc<T> onSubscribe)
Method Detail

getKey

public K getKey()
Returns the key the elements in this observable were grouped by.

Returns:
the key the elements in this observable were grouped by