Observable<java.lang.Boolean>
all(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits a Boolean that indicates whether all of the items emitted by the source Observable satisfy a condition.
static <T> Observable<T>
amb(java.lang.Iterable<? extends Observable<? extends T>> sources)
Mirrors the one Observable in an Iterable of several Observables that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2)
Given two Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3)
Given three Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4)
Given four Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5)
Given five Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6)
Given six Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6, Observable<? extends T> o7)
Given seven Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6, Observable<? extends T> o7, Observable<? extends T> o8)
Given eight Observables, mirrors the one that first either emits an item or sends a termination notification.
static <T> Observable<T>
amb(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6, Observable<? extends T> o7, Observable<? extends T> o8, Observable<? extends T> o9)
Given nine Observables, mirrors the one that first either emits an item or sends a termination notification.
Observable<T>
ambWith(Observable<? extends T> t1)
Mirrors the Observable (current or provided) that first either emits an item or sends a termination notification.
Observable<T>
asObservable()
Portrays a object of an Observable subclass as a simple Observable object.
<TClosing> Observable<java.util.List<T>>
buffer(Func0<? extends Observable<? extends TClosing>> bufferClosingSelector)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(int count)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(int count, int skip)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(long timespan, long timeshift, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(long timespan, long timeshift, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(long timespan, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(long timespan, java.util.concurrent.TimeUnit unit, int count)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(long timespan, java.util.concurrent.TimeUnit unit, int count, Scheduler scheduler)
Returns an Observable that emits buffers of items it collects from the source Observable.
Observable<java.util.List<T>>
buffer(long timespan, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits buffers of items it collects from the source Observable.
<TOpening,TClosing>
Observable<java.util.List<T>>
buffer(Observable<? extends TOpening> bufferOpenings, Func1<? super TOpening,? extends Observable<? extends TClosing>> bufferClosingSelector)
Returns an Observable that emits buffers of items it collects from the source Observable.
<B> Observable<java.util.List<T>>
buffer(Observable<B> boundary)
Returns an Observable that emits non-overlapping buffered items from the source Observable each time the specified boundary Observable emits an item.
<B> Observable<java.util.List<T>>
buffer(Observable<B> boundary, int initialCapacity)
Returns an Observable that emits non-overlapping buffered items from the source Observable each time the specified boundary Observable emits an item.
Observable<T>
cache()
Returns an Observable that subscribes to this Observable lazily, caches all of its events and replays them, in the same order as received, to all the downstream subscribers.
Observable<T>
cache(int initialCapacity)
Observable<T>
cacheWithInitialCapacity(int initialCapacity)
Returns an Observable that subscribes to this Observable lazily, caches all of its events and replays them, in the same order as received, to all the downstream subscribers.
<R> Observable<R>
cast(java.lang.Class<R> klass)
Returns an Observable that emits the items emitted by the source Observable, converted to the specified type.
<R> Observable<R>
collect(Func0<R> stateFactory, Action2<R,? super T> collector)
Collects items emitted by the source Observable into a single mutable data structure and returns an Observable that emits this structure.
static <T,R> Observable<R>
combineLatest(java.lang.Iterable<? extends Observable<? extends T>> sources, FuncN<? extends R> combineFunction)
Combines a collection of source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T,R> Observable<R>
combineLatest(java.util.List<? extends Observable<? extends T>> sources, FuncN<? extends R> combineFunction)
Combines a list of source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,R> Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Func2<? super T1,? super T2,? extends R> combineFunction)
Combines two source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from either of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Func3<? super T1,? super T2,? super T3,? extends R> combineFunction)
Combines three source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,T4,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Func4<? super T1,? super T2,? super T3,? super T4,? extends R> combineFunction)
Combines four source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,T4,T5,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Func5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> combineFunction)
Combines five source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,T4,T5,T6,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Func6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R> combineFunction)
Combines six source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,T4,T5,T6,T7,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Func7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R> combineFunction)
Combines seven source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,T4,T5,T6,T7,T8,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Observable<? extends T8> o8, Func8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> combineFunction)
Combines eight source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R>
Observable<R>
combineLatest(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Observable<? extends T8> o8, Observable<? extends T9> o9, Func9<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? super T9,? extends R> combineFunction)
Combines nine source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
static <T,R> Observable<R>
combineLatestDelayError(java.lang.Iterable<? extends Observable<? extends T>> sources, FuncN<? extends R> combineFunction)
Combines a collection of source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function and delays any error from the sources until all source Observables terminate.
<R> Observable<R>
compose(Observable.Transformer<? super T,? extends R> transformer)
Transform an Observable by applying a particular Transformer function to it.
static <T> Observable<T>
concat(java.lang.Iterable<? extends Observable<? extends T>> sequences)
Flattens an Iterable of Observables into one Observable, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends Observable<? extends T>> observables)
Returns an Observable that emits the items emitted by each of the Observables emitted by the source Observable, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2)
Returns an Observable that emits the items emitted by two Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3)
Returns an Observable that emits the items emitted by three Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4)
Returns an Observable that emits the items emitted by four Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5)
Returns an Observable that emits the items emitted by five Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6)
Returns an Observable that emits the items emitted by six Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7)
Returns an Observable that emits the items emitted by seven Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8)
Returns an Observable that emits the items emitted by eight Observables, one after the other, without interleaving them.
static <T> Observable<T>
concat(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8, Observable<? extends T> t9)
Returns an Observable that emits the items emitted by nine Observables, one after the other, without interleaving them.
static <T> Observable<T>
concatDelayError(java.lang.Iterable<? extends Observable<? extends T>> sources)
Concatenates the Iterable sequence of Observables into a single sequence by subscribing to each Observable, one after the other, one at a time and delays any errors till the all inner Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends Observable<? extends T>> sources)
Concatenates the Observable sequence of Observables into a single sequence by subscribing to each inner Observable, one after the other, one at a time and delays any errors till the all inner and the outer Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2)
Returns an Observable that emits the items emitted by two Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3)
Returns an Observable that emits the items emitted by three Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4)
Returns an Observable that emits the items emitted by four Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5)
Returns an Observable that emits the items emitted by five Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6)
Returns an Observable that emits the items emitted by six Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7)
Returns an Observable that emits the items emitted by seven Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8)
Returns an Observable that emits the items emitted by eight Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8, Observable<? extends T> t9)
Returns an Observable that emits the items emitted by nine Observables, one after the other, without interleaving them, and delays any errors till all Observables terminate.
static <T> Observable<T>
concatEager(java.lang.Iterable<? extends Observable<? extends T>> sources)
Concatenates a sequence of Observables eagerly into a single stream of values.
static <T> Observable<T>
concatEager(java.lang.Iterable<? extends Observable<? extends T>> sources, int capacityHint)
Concatenates a sequence of Observables eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends Observable<? extends T>> sources)
Concatenates an Observable sequence of Observables eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends Observable<? extends T>> sources, int capacityHint)
Concatenates an Observable sequence of Observables eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2)
Concatenates two source Observables eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3)
Concatenates three sources eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4)
Concatenates four sources eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5)
Concatenates five sources eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6)
Concatenates six sources eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6, Observable<? extends T> o7)
Concatenates seven sources eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6, Observable<? extends T> o7, Observable<? extends T> o8)
Concatenates eight sources eagerly into a single stream of values.
static <T> Observable<T>
concatEager(Observable<? extends T> o1, Observable<? extends T> o2, Observable<? extends T> o3, Observable<? extends T> o4, Observable<? extends T> o5, Observable<? extends T> o6, Observable<? extends T> o7, Observable<? extends T> o8, Observable<? extends T> o9)
Concatenates nine sources eagerly into a single stream of values.
<R> Observable<R>
concatMap(Func1<? super T,? extends Observable<? extends R>> func)
Returns a new Observable that emits items resulting from applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then emitting the items that result from concatenating those resulting Observables.
<R> Observable<R>
concatMapDelayError(Func1<? super T,? extends Observable<? extends R>> func)
Maps each of the items into an Observable, subscribes to them one after the other, one at a time and emits their values in order while delaying any error from either this or any of the inner Observables till all of them terminate.
<R> Observable<R>
concatMapEager(Func1<? super T,? extends Observable<? extends R>> mapper)
Maps a sequence of values into Observables and concatenates these Observables eagerly into a single Observable.
<R> Observable<R>
concatMapEager(Func1<? super T,? extends Observable<? extends R>> mapper, int capacityHint)
Maps a sequence of values into Observables and concatenates these Observables eagerly into a single Observable.
<R> Observable<R>
concatMapEager(Func1<? super T,? extends Observable<? extends R>> mapper, int capacityHint, int maxConcurrent)
Maps a sequence of values into Observables and concatenates these Observables eagerly into a single Observable.
<R> Observable<R>
concatMapIterable(Func1<? super T,? extends java.lang.Iterable<? extends R>> collectionSelector)
Returns an Observable that concatenate each item emitted by the source Observable with the values in an Iterable corresponding to that item that is generated by a selector.
Observable<T>
concatWith(Observable<? extends T> t1)
Returns an Observable that emits the items emitted from the current Observable, then the next, one after the other, without interleaving them.
Observable<java.lang.Boolean>
contains(java.lang.Object element)
Returns an Observable that emits a Boolean that indicates whether the source Observable emitted a specified item.
Observable<java.lang.Integer>
count()
Returns an Observable that emits the count of the total number of items emitted by the source Observable.
Observable<java.lang.Long>
countLong()
Returns an Observable that counts the total number of items emitted by the source Observable and emits this count as a 64-bit Long.
static <T> Observable<T>
create(Action1<Emitter<T>> emitter, Emitter.BackpressureMode backpressure)
Provides an API (via a cold Observable) that bridges the reactive world with the callback-style, generally non-backpressured world.
static <S,T> Observable<T>
create(AsyncOnSubscribe<S,T> asyncOnSubscribe)
Returns an Observable that respects the back-pressure semantics.
static <T> Observable<T>
create(Observable.OnSubscribe<T> f)
static <S,T> Observable<T>
create(SyncOnSubscribe<S,T> syncOnSubscribe)
Returns an Observable that respects the back-pressure semantics.
<U> Observable<T>
debounce(Func1<? super T,? extends Observable<U>> debounceSelector)
Returns an Observable that mirrors the source Observable, except that it drops items emitted by the source Observable that are followed by another item within a computed debounce duration.
Observable<T>
debounce(long timeout, java.util.concurrent.TimeUnit unit)
Returns an Observable that mirrors the source Observable, except that it drops items emitted by the source Observable that are followed by newer items before a timeout value expires.
Observable<T>
debounce(long timeout, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that mirrors the source Observable, except that it drops items emitted by the source Observable that are followed by newer items before a timeout value expires on a specified Scheduler.
Observable<T>
defaultIfEmpty(T defaultValue)
Returns an Observable that emits the items emitted by the source Observable or a specified default item if the source Observable is empty.
static <T> Observable<T>
defer(Func0<Observable<T>> observableFactory)
Returns an Observable that calls an Observable factory to create an Observable for each new Observer that subscribes.
<U,V> Observable<T>
delay(Func0<? extends Observable<U>> subscriptionDelay, Func1<? super T,? extends Observable<V>> itemDelay)
Returns an Observable that delays the subscription to and emissions from the source Observable via another Observable on a per-item basis.
<U> Observable<T>
delay(Func1<? super T,? extends Observable<U>> itemDelay)
Returns an Observable that delays the emissions of the source Observable via another Observable on a per-item basis.
Observable<T>
delay(long delay, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits the items emitted by the source Observable shifted forward in time by a specified delay.
Observable<T>
delay(long delay, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits the items emitted by the source Observable shifted forward in time by a specified delay.
<U> Observable<T>
delaySubscription(Func0<? extends Observable<U>> subscriptionDelay)
Returns an Observable that delays the subscription to the source Observable until a second Observable emits an item.
Observable<T>
delaySubscription(long delay, java.util.concurrent.TimeUnit unit)
Returns an Observable that delays the subscription to the source Observable by a given amount of time.
Observable<T>
delaySubscription(long delay, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that delays the subscription to the source Observable by a given amount of time, both waiting and subscribing on a given Scheduler.
<U> Observable<T>
delaySubscription(Observable<U> other)
Returns an Observable that delays the subscription to this Observable until the other Observable emits an element or completes normally.
<T2> Observable<T2>
dematerialize()
Returns an Observable that reverses the effect of
materialize
by transforming the
Notification
objects emitted by the source Observable into the items or notifications they represent.
Observable<T>
distinct()
Returns an Observable that emits all items emitted by the source Observable that are distinct.
<U> Observable<T>
distinct(Func1<? super T,? extends U> keySelector)
Returns an Observable that emits all items emitted by the source Observable that are distinct according to a key selector function.
Observable<T>
distinctUntilChanged()
Returns an Observable that emits all items emitted by the source Observable that are distinct from their immediate predecessors.
<U> Observable<T>
distinctUntilChanged(Func1<? super T,? extends U> keySelector)
Returns an Observable that emits all items emitted by the source Observable that are distinct from their immediate predecessors, according to a key selector function.
Observable<T>
distinctUntilChanged(Func2<? super T,? super T,java.lang.Boolean> comparator)
Returns an Observable that emits all items emitted by the source Observable that are distinct from their immediate predecessors when compared with each other via the provided comparator function.
Observable<T>
doAfterTerminate(Action0 action)
Observable<T>
doOnCompleted(Action0 onCompleted)
Modifies the source Observable so that it invokes an action when it calls onCompleted
.
Observable<T>
doOnEach(Action1<Notification<? super T>> onNotification)
Modifies the source Observable so that it invokes an action for each item and terminal event it emits.
Observable<T>
doOnEach(Observer<? super T> observer)
Modifies the source Observable so that it notifies an Observer for each item and terminal event it emits.
Observable<T>
doOnError(Action1<? super java.lang.Throwable> onError)
Modifies the source Observable so that it invokes an action if it calls onError
.
Observable<T>
doOnNext(Action1<? super T> onNext)
Modifies the source Observable so that it invokes an action when it calls onNext
.
Observable<T>
doOnRequest(Action1<? super java.lang.Long> onRequest)
Modifies the source Observable
so that it invokes the given action when it receives a request for more items.
Observable<T>
doOnSubscribe(Action0 subscribe)
Modifies the source Observable
so that it invokes the given action when it is subscribed from its subscribers.
Observable<T>
doOnTerminate(Action0 onTerminate)
Modifies the source Observable so that it invokes an action when it calls onCompleted
or onError
.
Observable<T>
doOnUnsubscribe(Action0 unsubscribe)
Calls the unsubscribe Action0
if the downstream unsubscribes the sequence.
Observable<T>
elementAt(int index)
Returns an Observable that emits the single item at a specified index in a sequence of emissions from a source Observable.
Observable<T>
elementAtOrDefault(int index, T defaultValue)
Returns an Observable that emits the item found at a specified index in a sequence of emissions from a source Observable, or a default item if that index is out of range.
static <T> Observable<T>
empty()
Returns an Observable that emits no items to the
Observer
and immediately invokes its
onCompleted
method.
static <T> Observable<T>
error(java.lang.Throwable exception)
Returns an Observable that invokes an
Observer
's
onError
method when the Observer subscribes to it.
Observable<java.lang.Boolean>
exists(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits true
if any item emitted by the source Observable satisfies a specified condition, otherwise false
.
Observable<T>
filter(Func1<? super T,java.lang.Boolean> predicate)
Filters items emitted by an Observable by only emitting those that satisfy a specified predicate.
Observable<T>
finallyDo(Action0 action)
Observable<T>
first()
Returns an Observable that emits only the very first item emitted by the source Observable, or notifies of an NoSuchElementException
if the source Observable is empty.
Observable<T>
first(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits only the very first item emitted by the source Observable that satisfies a specified condition, or notifies of an NoSuchElementException
if no such items are emitted.
Observable<T>
firstOrDefault(T defaultValue)
Returns an Observable that emits only the very first item emitted by the source Observable, or a default item if the source Observable completes without emitting anything.
Observable<T>
firstOrDefault(T defaultValue, Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits only the very first item emitted by the source Observable that satisfies a specified condition, or a default item if the source Observable emits no such items.
<R> Observable<R>
flatMap(Func1<? super T,? extends Observable<? extends R>> func)
Returns an Observable that emits items based on applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then merging those resulting Observables and emitting the results of this merger.
<R> Observable<R>
flatMap(Func1<? super T,? extends Observable<? extends R>> onNext, Func1<? super java.lang.Throwable,? extends Observable<? extends R>> onError, Func0<? extends Observable<? extends R>> onCompleted)
Returns an Observable that applies a function to each item emitted or notification raised by the source Observable and then flattens the Observables returned from these functions and emits the resulting items.
<R> Observable<R>
flatMap(Func1<? super T,? extends Observable<? extends R>> onNext, Func1<? super java.lang.Throwable,? extends Observable<? extends R>> onError, Func0<? extends Observable<? extends R>> onCompleted, int maxConcurrent)
Returns an Observable that applies a function to each item emitted or notification raised by the source Observable and then flattens the Observables returned from these functions and emits the resulting items, while limiting the maximum number of concurrent subscriptions to these Observables.
<R> Observable<R>
flatMap(Func1<? super T,? extends Observable<? extends R>> func, int maxConcurrent)
Returns an Observable that emits items based on applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then merging those resulting Observables and emitting the results of this merger, while limiting the maximum number of concurrent subscriptions to these Observables.
<U,R> Observable<R>
flatMap(Func1<? super T,? extends Observable<? extends U>> collectionSelector, Func2<? super T,? super U,? extends R> resultSelector)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the source Observable and a specified collection Observable.
<U,R> Observable<R>
flatMap(Func1<? super T,? extends Observable<? extends U>> collectionSelector, Func2<? super T,? super U,? extends R> resultSelector, int maxConcurrent)
Returns an Observable that emits the results of a specified function to the pair of values emitted by the source Observable and a specified collection Observable, while limiting the maximum number of concurrent subscriptions to these Observables.
Observable<T>
flatMapCompletable(Func1<? super T,? extends Completable> mapper)
Maps all upstream values to Completables and runs them together until the upstream and all inner Completables complete normally.
Observable<T>
flatMapCompletable(Func1<? super T,? extends Completable> mapper, boolean delayErrors)
Maps all upstream values to Completables and runs them together, optionally delaying any errors, until the upstream and all inner Completables terminate.
Observable<T>
flatMapCompletable(Func1<? super T,? extends Completable> mapper, boolean delayErrors, int maxConcurrency)
Maps upstream values to Completables and runs up to the given number of them together at a time, optionally delaying any errors, until the upstream and all inner Completables terminate.
<R> Observable<R>
flatMapIterable(Func1<? super T,? extends java.lang.Iterable<? extends R>> collectionSelector)
Returns an Observable that merges each item emitted by the source Observable with the values in an Iterable corresponding to that item that is generated by a selector.
<R> Observable<R>
flatMapIterable(Func1<? super T,? extends java.lang.Iterable<? extends R>> collectionSelector, int maxConcurrent)
Returns an Observable that merges each item emitted by the source Observable with the values in an Iterable corresponding to that item that is generated by a selector, while limiting the number of concurrent subscriptions to these Observables.
<U,R> Observable<R>
flatMapIterable(Func1<? super T,? extends java.lang.Iterable<? extends U>> collectionSelector, Func2<? super T,? super U,? extends R> resultSelector)
Returns an Observable that emits the results of applying a function to the pair of values from the source Observable and an Iterable corresponding to that item that is generated by a selector.
<U,R> Observable<R>
flatMapIterable(Func1<? super T,? extends java.lang.Iterable<? extends U>> collectionSelector, Func2<? super T,? super U,? extends R> resultSelector, int maxConcurrent)
Returns an Observable that emits the results of applying a function to the pair of values from the source Observable and an Iterable corresponding to that item that is generated by a selector, while limiting the number of concurrent subscriptions to these Observables.
<R> Observable<R>
flatMapSingle(Func1<? super T,? extends Single<? extends R>> mapper)
Maps all upstream values to Singles and runs them together until the upstream and all inner Singles complete normally.
<R> Observable<R>
flatMapSingle(Func1<? super T,? extends Single<? extends R>> mapper, boolean delayErrors)
Maps all upstream values to Singles and runs them together, optionally delaying any errors, until the upstream and all inner Singles terminate.
<R> Observable<R>
flatMapSingle(Func1<? super T,? extends Single<? extends R>> mapper, boolean delayErrors, int maxConcurrency)
Maps upstream values to Singles and runs up to the given number of them together at a time, optionally delaying any errors, until the upstream and all inner Singles terminate.
void
forEach(Action1<? super T> onNext)
Subscribes to the
Observable
and receives notifications for each element.
void
forEach(Action1<? super T> onNext, Action1<java.lang.Throwable> onError)
Subscribes to the
Observable
and receives notifications for each element and error events.
void
forEach(Action1<? super T> onNext, Action1<java.lang.Throwable> onError, Action0 onComplete)
Subscribes to the
Observable
and receives notifications for each element and the terminal events.
static <T> Observable<T>
from(java.util.concurrent.Future<? extends T> future)
Converts a Future
into an Observable.
static <T> Observable<T>
from(java.util.concurrent.Future<? extends T> future, long timeout, java.util.concurrent.TimeUnit unit)
Converts a Future
into an Observable, with a timeout on the Future.
static <T> Observable<T>
from(java.util.concurrent.Future<? extends T> future, Scheduler scheduler)
Converts a
Future
, operating on a specified
Scheduler
, into an Observable.
static <T> Observable<T>
from(java.lang.Iterable<? extends T> iterable)
Converts an Iterable
sequence into an Observable that emits the items in the sequence.
static <T> Observable<T>
from(T[] array)
Converts an Array into an Observable that emits the items in the Array.
static <T> Observable<T>
fromCallable(java.util.concurrent.Callable<? extends T> func)
Returns an Observable that, when an observer subscribes to it, invokes a function you specify and then emits the value returned from that function.
<K> Observable<GroupedObservable<K,T>>
groupBy(Func1<? super T,? extends K> keySelector)
Groups the items emitted by an
Observable
according to a specified criterion, and emits these grouped items as
GroupedObservable
s.
<K,R> Observable<GroupedObservable<K,R>>
groupBy(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends R> elementSelector)
Groups the items emitted by an
Observable
according to a specified criterion, and emits these grouped items as
GroupedObservable
s.
<K,R> Observable<GroupedObservable<K,R>>
groupBy(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends R> elementSelector, Func1<Action1<K>,java.util.Map<K,java.lang.Object>> evictingMapFactory)
<K,R> Observable<GroupedObservable<K,R>>
groupBy(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends R> elementSelector, int bufferSize, boolean delayError, Func1<Action1<java.lang.Object>,java.util.Map<K,java.lang.Object>> evictingMapFactory)
Groups the items emitted by an
Observable
according to a specified criterion, and emits these grouped items as
GroupedObservable
s.
<T2,D1,D2,R>
Observable<R>
groupJoin(Observable<T2> right, Func1<? super T,? extends Observable<D1>> leftDuration, Func1<? super T2,? extends Observable<D2>> rightDuration, Func2<? super T,? super Observable<T2>,? extends R> resultSelector)
Returns an Observable that correlates two Observables when they overlap in time and groups the results.
Observable<T>
ignoreElements()
Ignores all items emitted by the source Observable and only calls onCompleted
or onError
.
static Observable<java.lang.Long>
interval(long initialDelay, long period, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits a 0L
after the initialDelay
and ever increasing numbers after each period
of time thereafter.
static Observable<java.lang.Long>
interval(long initialDelay, long period, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits a
0L
after the
initialDelay
and ever increasing numbers after each
period
of time thereafter, on a specified
Scheduler
.
static Observable<java.lang.Long>
interval(long interval, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits a sequential number every specified interval of time.
static Observable<java.lang.Long>
interval(long interval, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits a sequential number every specified interval of time, on a specified Scheduler.
Observable<java.lang.Boolean>
isEmpty()
Returns an Observable that emits true
if the source Observable is empty, otherwise false
.
<TRight,TLeftDuration,TRightDuration,R>
Observable<R>
join(Observable<TRight> right, Func1<T,Observable<TLeftDuration>> leftDurationSelector, Func1<TRight,Observable<TRightDuration>> rightDurationSelector, Func2<T,TRight,R> resultSelector)
Correlates the items emitted by two Observables based on overlapping durations.
static <T> Observable<T>
just(T value)
Returns an Observable that emits a single item and then completes.
static <T> Observable<T>
just(T t1, T t2)
Converts two items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3)
Converts three items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4)
Converts four items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4, T t5)
Converts five items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4, T t5, T t6)
Converts six items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4, T t5, T t6, T t7)
Converts seven items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8)
Converts eight items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8, T t9)
Converts nine items into an Observable that emits those items.
static <T> Observable<T>
just(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8, T t9, T t10)
Converts ten items into an Observable that emits those items.
Observable<T>
last()
Returns an Observable that emits the last item emitted by the source Observable or notifies observers of a NoSuchElementException
if the source Observable is empty.
Observable<T>
last(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits only the last item emitted by the source Observable that satisfies a given condition, or notifies of a NoSuchElementException
if no such items are emitted.
Observable<T>
lastOrDefault(T defaultValue)
Returns an Observable that emits only the last item emitted by the source Observable, or a default item if the source Observable completes without emitting any items.
Observable<T>
lastOrDefault(T defaultValue, Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits only the last item emitted by the source Observable that satisfies a specified condition, or a default item if no such item is emitted by the source Observable.
<R> Observable<R>
lift(Observable.Operator<? extends R,? super T> operator)
This method requires advanced knowledge about building operators; please consider other standard composition methods first; Lifts a function to the current Observable and returns a new Observable that when subscribed to will pass the values of the current Observable through the Operator function.
Observable<T>
limit(int count)
Returns an Observable that emits only the first count
items emitted by the source Observable.
<R> Observable<R>
map(Func1<? super T,? extends R> func)
Returns an Observable that applies a specified function to each item emitted by the source Observable and emits the results of these function applications.
Observable<Notification<T>>
materialize()
Returns an Observable that represents all of the emissions
andnotifications from the source Observable into emissions marked with their original types within
Notification
objects.
static <T> Observable<T>
merge(java.lang.Iterable<? extends Observable<? extends T>> sequences)
Flattens an Iterable of Observables into one Observable, without any transformation.
static <T> Observable<T>
merge(java.lang.Iterable<? extends Observable<? extends T>> sequences, int maxConcurrent)
Flattens an Iterable of Observables into one Observable, without any transformation, while limiting the number of concurrent subscriptions to these Observables.
static <T> Observable<T>
merge(Observable<? extends Observable<? extends T>> source)
Flattens an Observable that emits Observables into a single Observable that emits the items emitted by those Observables, without any transformation.
static <T> Observable<T>
merge(Observable<? extends Observable<? extends T>> source, int maxConcurrent)
Flattens an Observable that emits Observables into a single Observable that emits the items emitted by those Observables, without any transformation, while limiting the maximum number of concurrent subscriptions to these Observables.
static <T> Observable<T>
merge(Observable<? extends T>[] sequences)
Flattens an Array of Observables into one Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T>[] sequences, int maxConcurrent)
Flattens an Array of Observables into one Observable, without any transformation, while limiting the number of concurrent subscriptions to these Observables.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2)
Flattens two Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3)
Flattens three Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4)
Flattens four Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5)
Flattens five Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6)
Flattens six Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7)
Flattens seven Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8)
Flattens eight Observables into a single Observable, without any transformation.
static <T> Observable<T>
merge(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8, Observable<? extends T> t9)
Flattens nine Observables into a single Observable, without any transformation.
static <T> Observable<T>
mergeDelayError(java.lang.Iterable<? extends Observable<? extends T>> sequences)
Flattens an Iterable of Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from each of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(java.lang.Iterable<? extends Observable<? extends T>> sequences, int maxConcurrent)
Flattens an Iterable of Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from each of the source Observables without being interrupted by an error notification from one of them, while limiting the number of concurrent subscriptions to these Observables.
static <T> Observable<T>
mergeDelayError(Observable<? extends Observable<? extends T>> source)
Flattens an Observable that emits Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends Observable<? extends T>> source, int maxConcurrent)
Flattens an Observable that emits Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them, while limiting the number of concurrent subscriptions to these Observables.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2)
Flattens two Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from each of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3)
Flattens three Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4)
Flattens four Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5)
Flattens five Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6)
Flattens six Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7)
Flattens seven Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8)
Flattens eight Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
static <T> Observable<T>
mergeDelayError(Observable<? extends T> t1, Observable<? extends T> t2, Observable<? extends T> t3, Observable<? extends T> t4, Observable<? extends T> t5, Observable<? extends T> t6, Observable<? extends T> t7, Observable<? extends T> t8, Observable<? extends T> t9)
Flattens nine Observables into one Observable, in a way that allows an Observer to receive all successfully emitted items from all of the source Observables without being interrupted by an error notification from one of them.
Observable<T>
mergeWith(Observable<? extends T> t1)
Flattens this and another Observable into a single Observable, without any transformation.
Observable<Observable<T>>
nest()
Converts the source Observable<T>
into an Observable<Observable<T>>
that emits the source Observable as its single emission.
static <T> Observable<T>
never()
Returns an Observable that never sends any items or notifications to an
Observer
.
Observable<T>
observeOn(Scheduler scheduler)
Modifies an Observable to perform its emissions and notifications on a specified
Scheduler
, asynchronously with a bounded buffer of
RxRingBuffer.SIZE
slots.
Observable<T>
observeOn(Scheduler scheduler, boolean delayError)
Modifies an Observable to perform its emissions and notifications on a specified
Scheduler
, asynchronously with a bounded buffer and optionally delays onError notifications.
Observable<T>
observeOn(Scheduler scheduler, boolean delayError, int bufferSize)
Modifies an Observable to perform its emissions and notifications on a specified
Scheduler
, asynchronously with a bounded buffer of configurable size and optionally delays onError notifications.
Observable<T>
observeOn(Scheduler scheduler, int bufferSize)
Modifies an Observable to perform its emissions and notifications on a specified
Scheduler
, asynchronously with a bounded buffer of configurable size.
<R> Observable<R>
ofType(java.lang.Class<R> klass)
Filters the items emitted by an Observable, only emitting those of the specified type.
Observable<T>
onBackpressureBuffer()
Instructs an Observable that is emitting items faster than its observer can consume them to buffer these items indefinitely until they can be emitted.
Observable<T>
onBackpressureBuffer(long capacity)
Instructs an Observable that is emitting items faster than its observer can consume them to buffer up to a given amount of items until they can be emitted.
Observable<T>
onBackpressureBuffer(long capacity, Action0 onOverflow)
Instructs an Observable that is emitting items faster than its observer can consume them to buffer up to a given amount of items until they can be emitted.
Observable<T>
onBackpressureBuffer(long capacity, Action0 onOverflow, BackpressureOverflow.Strategy overflowStrategy)
Instructs an Observable that is emitting items faster than its observer can consume them to buffer up to a given amount of items until they can be emitted.
Observable<T>
onBackpressureDrop()
Instructs an Observable that is emitting items faster than its observer can consume them to discard, rather than emit, those items that its observer is not prepared to observe.
Observable<T>
onBackpressureDrop(Action1<? super T> onDrop)
Instructs an Observable that is emitting items faster than its observer can consume them to discard, rather than emit, those items that its observer is not prepared to observe.
Observable<T>
onBackpressureLatest()
Instructs an Observable that is emitting items faster than its observer can consume them to hold onto the latest value and emit that on request.
Observable<T>
onErrorResumeNext(Func1<? super java.lang.Throwable,? extends Observable<? extends T>> resumeFunction)
Instructs an Observable to pass control to another Observable rather than invoking
onError
if it encounters an error.
Observable<T>
onErrorResumeNext(Observable<? extends T> resumeSequence)
Instructs an Observable to pass control to another Observable rather than invoking
onError
if it encounters an error.
Observable<T>
onErrorReturn(Func1<? super java.lang.Throwable,? extends T> resumeFunction)
Instructs an Observable to emit an item (returned by a specified function) rather than invoking
onError
if it encounters an error.
Observable<T>
onExceptionResumeNext(Observable<? extends T> resumeSequence)
Instructs an Observable to pass control to another Observable rather than invoking
onError
if it encounters an
Exception
.
Observable<T>
onTerminateDetach()
Nulls out references to the upstream producer and downstream Subscriber if the sequence is terminated or downstream unsubscribes.
ConnectableObservable<T>
publish()
Returns a
ConnectableObservable
, which is a variety of Observable that waits until its
connect
method is called before it begins emitting items to those
Observer
s that have subscribed to it.
<R> Observable<R>
publish(Func1<? super Observable<T>,? extends Observable<R>> selector)
Returns an Observable that emits the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the underlying sequence.
static Observable<java.lang.Integer>
range(int start, int count)
Returns an Observable that emits a sequence of Integers within a specified range.
static Observable<java.lang.Integer>
range(int start, int count, Scheduler scheduler)
Returns an Observable that emits a sequence of Integers within a specified range, on a specified Scheduler.
Observable<T>
rebatchRequests(int n)
Requests n
initially from the upstream and then 75% of n
subsequently after 75% of n
values have been emitted to the downstream.
Observable<T>
reduce(Func2<T,T,T> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source Observable, then feeds the result of that function along with the second item emitted by the source Observable into the same function, and so on until all items have been emitted by the source Observable, and emits the final result from the final call to your function as its sole item.
<R> Observable<R>
reduce(R initialValue, Func2<R,? super T,R> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source Observable and a specified seed value, then feeds the result of that function along with the second item emitted by an Observable into the same function, and so on until all items have been emitted by the source Observable, emitting the final result from the final call to your function as its sole item.
Observable<T>
repeat()
Returns an Observable that repeats the sequence of items emitted by the source Observable indefinitely.
Observable<T>
repeat(long count)
Returns an Observable that repeats the sequence of items emitted by the source Observable at most count
times.
Observable<T>
repeat(long count, Scheduler scheduler)
Returns an Observable that repeats the sequence of items emitted by the source Observable at most count
times, on a particular Scheduler.
Observable<T>
repeat(Scheduler scheduler)
Returns an Observable that repeats the sequence of items emitted by the source Observable indefinitely, on a particular Scheduler.
Observable<T>
repeatWhen(Func1<? super Observable<? extends java.lang.Void>,? extends Observable<?>> notificationHandler)
Returns an Observable that emits the same values as the source Observable with the exception of an onCompleted
.
Observable<T>
repeatWhen(Func1<? super Observable<? extends java.lang.Void>,? extends Observable<?>> notificationHandler, Scheduler scheduler)
Returns an Observable that emits the same values as the source Observable with the exception of an onCompleted
.
ConnectableObservable<T>
replay()
Returns a
ConnectableObservable
that shares a single subscription to the underlying Observable that will replay all of its items and notifications to any future
Observer
.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector)
Returns an Observable that emits items that are the results of invoking a specified selector on the items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, int bufferSize)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable, replaying
bufferSize
notifications.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, int bufferSize, long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable, replaying no more than
bufferSize
items that were emitted within a specified time window.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, int bufferSize, long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable, replaying no more than
bufferSize
items that were emitted within a specified time window.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, int bufferSize, Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable, replaying a maximum of
bufferSize
items.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable, replaying all items that were emitted within a specified time window.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable, replaying all items that were emitted within a specified time window.
<R> Observable<R>
replay(Func1<? super Observable<T>,? extends Observable<R>> selector, Scheduler scheduler)
Returns an Observable that emits items that are the results of invoking a specified selector on items emitted by a
ConnectableObservable
that shares a single subscription to the source Observable.
ConnectableObservable<T>
replay(int bufferSize)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable that replays at most
bufferSize
items emitted by that Observable.
ConnectableObservable<T>
replay(int bufferSize, long time, java.util.concurrent.TimeUnit unit)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable and replays at most
bufferSize
items that were emitted during a specified time window.
ConnectableObservable<T>
replay(int bufferSize, long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable and that replays a maximum of
bufferSize
items that are emitted within a specified time window.
ConnectableObservable<T>
replay(int bufferSize, Scheduler scheduler)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable and replays at most
bufferSize
items emitted by that Observable.
ConnectableObservable<T>
replay(long time, java.util.concurrent.TimeUnit unit)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable and replays all items emitted by that Observable within a specified time window.
ConnectableObservable<T>
replay(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable and replays all items emitted by that Observable within a specified time window.
ConnectableObservable<T>
replay(Scheduler scheduler)
Returns a
ConnectableObservable
that shares a single subscription to the source Observable that will replay all of its items and notifications to any future
Observer
on the given
Scheduler
.
Observable<T>
retry()
Returns an Observable that mirrors the source Observable, resubscribing to it if it calls onError
(infinite retry count).
Observable<T>
retry(Func2<java.lang.Integer,java.lang.Throwable,java.lang.Boolean> predicate)
Returns an Observable that mirrors the source Observable, resubscribing to it if it calls onError
and the predicate returns true for that specific exception and retry count.
Observable<T>
retry(long count)
Returns an Observable that mirrors the source Observable, resubscribing to it if it calls onError
up to a specified number of retries.
Observable<T>
retryWhen(Func1<? super Observable<? extends java.lang.Throwable>,? extends Observable<?>> notificationHandler)
Returns an Observable that emits the same values as the source observable with the exception of an onError
.
Observable<T>
retryWhen(Func1<? super Observable<? extends java.lang.Throwable>,? extends Observable<?>> notificationHandler, Scheduler scheduler)
Returns an Observable that emits the same values as the source observable with the exception of an onError
.
Observable<T>
sample(long period, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits the most recently emitted item (if any) emitted by the source Observable within periodic time intervals.
Observable<T>
sample(long period, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits the most recently emitted item (if any) emitted by the source Observable within periodic time intervals, where the intervals are defined on a particular Scheduler.
<U> Observable<T>
sample(Observable<U> sampler)
Returns an Observable that, when the specified sampler
Observable emits an item or completes, emits the most recently emitted item (if any) emitted by the source Observable since the previous emission from the sampler
Observable.
Observable<T>
scan(Func2<T,T,T> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source Observable, then feeds the result of that function along with the second item emitted by the source Observable into the same function, and so on until all items have been emitted by the source Observable, emitting the result of each of these iterations.
<R> Observable<R>
scan(R initialValue, Func2<R,? super T,R> accumulator)
Returns an Observable that applies a specified accumulator function to the first item emitted by a source Observable and a seed value, then feeds the result of that function along with the second item emitted by the source Observable into the same function, and so on until all items have been emitted by the source Observable, emitting the result of each of these iterations.
static <T> Observable<java.lang.Boolean>
sequenceEqual(Observable<? extends T> first, Observable<? extends T> second)
Returns an Observable that emits a Boolean value that indicates whether two Observable sequences are the same by comparing the items emitted by each Observable pairwise.
static <T> Observable<java.lang.Boolean>
sequenceEqual(Observable<? extends T> first, Observable<? extends T> second, Func2<? super T,? super T,java.lang.Boolean> equality)
Returns an Observable that emits a Boolean value that indicates whether two Observable sequences are the same by comparing the items emitted by each Observable pairwise based on the results of a specified equality function.
Observable<T>
serialize()
Forces an Observable's emissions and notifications to be serialized and for it to obey
the Observable contractin other ways.
Observable<T>
share()
Observable<T>
single()
Returns an Observable that emits the single item emitted by the source Observable, if that Observable emits only a single item.
Observable<T>
single(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits the single item emitted by the source Observable that matches a specified predicate, if that Observable emits one such item.
Observable<T>
singleOrDefault(T defaultValue)
Returns an Observable that emits the single item emitted by the source Observable, if that Observable emits only a single item, or a default item if the source Observable emits no items.
Observable<T>
singleOrDefault(T defaultValue, Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits the single item emitted by the source Observable that matches a predicate, if that Observable emits only one such item, or a default item if the source Observable emits no such items.
Observable<T>
skip(int count)
Returns an Observable that skips the first count
items emitted by the source Observable and emits the remainder.
Observable<T>
skip(long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that skips values emitted by the source Observable before a specified time window elapses.
Observable<T>
skip(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that skips values emitted by the source Observable before a specified time window on a specified
Scheduler
elapses.
Observable<T>
skipLast(int count)
Returns an Observable that drops a specified number of items from the end of the sequence emitted by the source Observable.
Observable<T>
skipLast(long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that drops items emitted by the source Observable during a specified time window before the source completes.
Observable<T>
skipLast(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that drops items emitted by the source Observable during a specified time window (defined on a specified scheduler) before the source completes.
<U> Observable<T>
skipUntil(Observable<U> other)
Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
Observable<T>
skipWhile(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds true, but emits all further source items as soon as the condition becomes false.
Observable<T>
sorted()
Returns an Observable that emits the events emitted by source Observable, in a sorted order.
Observable<T>
sorted(Func2<? super T,? super T,java.lang.Integer> sortFunction)
Returns an Observable that emits the events emitted by source Observable, in a sorted order based on a specified comparison function.
Observable<T>
startWith(java.lang.Iterable<T> values)
Returns an Observable that emits the items in a specified Iterable
before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(Observable<T> values)
Returns an Observable that emits the items in a specified
Observable
before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1)
Returns an Observable that emits a specified item before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3, T t4)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3, T t4, T t5)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3, T t4, T t5, T t6)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3, T t4, T t5, T t6, T t7)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Observable<T>
startWith(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8, T t9)
Returns an Observable that emits the specified items before it begins to emit items emitted by the source Observable.
Subscription
subscribe()
Subscribes to an Observable and ignores onNext
and onCompleted
emissions.
Subscription
subscribe(Action1<? super T> onNext)
Subscribes to an Observable and provides a callback to handle the items it emits.
Subscription
subscribe(Action1<? super T> onNext, Action1<java.lang.Throwable> onError)
Subscribes to an Observable and provides callbacks to handle the items it emits and any error notification it issues.
Subscription
subscribe(Action1<? super T> onNext, Action1<java.lang.Throwable> onError, Action0 onCompleted)
Subscribes to an Observable and provides callbacks to handle the items it emits and any error or completion notification it issues.
Subscription
subscribe(Observer<? super T> observer)
Subscribes to an Observable and provides an Observer that implements functions to handle the items the Observable emits and any error or completion notification it issues.
Subscription
subscribe(Subscriber<? super T> subscriber)
Subscribes to an Observable and provides a Subscriber that implements functions to handle the items the Observable emits and any error or completion notification it issues.
Observable<T>
subscribeOn(Scheduler scheduler)
Asynchronously subscribes Observers to this Observable on the specified
Scheduler
.
Observable<T>
subscribeOn(Scheduler scheduler, boolean requestOn)
Asynchronously subscribes Observers to this Observable on the specified
Scheduler
and optionally reroutes requests from other threads to the same
Scheduler
thread.
Observable<T>
switchIfEmpty(Observable<? extends T> alternate)
Returns an Observable that emits the items emitted by the source Observable or the items of an alternate Observable if the source Observable is empty.
<R> Observable<R>
switchMap(Func1<? super T,? extends Observable<? extends R>> func)
Returns a new Observable by applying a function that you supply to each item emitted by the source Observable that returns an Observable, and then emitting the items emitted by the most recently emitted of these Observables.
<R> Observable<R>
switchMapDelayError(Func1<? super T,? extends Observable<? extends R>> func)
Returns a new Observable by applying a function that you supply to each item emitted by the source Observable that returns an Observable, and then emitting the items emitted by the most recently emitted of these Observables and delays any error until all Observables terminate.
static <T> Observable<T>
switchOnNext(Observable<? extends Observable<? extends T>> sequenceOfSequences)
Converts an Observable that emits Observables into an Observable that emits the items emitted by the most recently emitted of those Observables.
static <T> Observable<T>
switchOnNextDelayError(Observable<? extends Observable<? extends T>> sequenceOfSequences)
Converts an Observable that emits Observables into an Observable that emits the items emitted by the most recently emitted of those Observables and delays any exception until all Observables terminate.
Observable<T>
take(int count)
Returns an Observable that emits only the first count
items emitted by the source Observable.
Observable<T>
take(long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits those items emitted by source Observable before a specified time runs out.
Observable<T>
take(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits those items emitted by source Observable before a specified time (on a specified Scheduler) runs out.
Observable<T>
takeFirst(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits only the very first item emitted by the source Observable that satisfies a specified condition.
Observable<T>
takeLast(int count)
Returns an Observable that emits at most the last count
items emitted by the source Observable.
Observable<T>
takeLast(int count, long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits at most a specified number of items from the source Observable that were emitted in a specified window of time before the Observable completed.
Observable<T>
takeLast(int count, long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits at most a specified number of items from the source Observable that were emitted in a specified window of time before the Observable completed, where the timing information is provided by a given Scheduler.
Observable<T>
takeLast(long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits the items from the source Observable that were emitted in a specified window of time before the Observable completed.
Observable<T>
takeLast(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits the items from the source Observable that were emitted in a specified window of time before the Observable completed, where the timing information is provided by a specified Scheduler.
Observable<java.util.List<T>>
takeLastBuffer(int count)
Returns an Observable that emits a single List containing at most the last count
elements emitted by the source Observable.
Observable<java.util.List<T>>
takeLastBuffer(int count, long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits a single List containing at most count
items from the source Observable that were emitted during a specified window of time before the source Observable completed.
Observable<java.util.List<T>>
takeLastBuffer(int count, long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits a single List containing at most count
items from the source Observable that were emitted during a specified window of time (on a specified Scheduler) before the source Observable completed.
Observable<java.util.List<T>>
takeLastBuffer(long time, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits a single List containing those items from the source Observable that were emitted during a specified window of time before the source Observable completed.
Observable<java.util.List<T>>
takeLastBuffer(long time, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits a single List containing those items from the source Observable that were emitted during a specified window of time before the source Observable completed, where the timing information is provided by the given Scheduler.
Observable<T>
takeUntil(Func1<? super T,java.lang.Boolean> stopPredicate)
Returns an Observable that emits items emitted by the source Observable, checks the specified predicate for each item, and then completes when the condition is satisfied.
<E> Observable<T>
takeUntil(Observable<? extends E> other)
Returns an Observable that emits the items emitted by the source Observable until a second Observable emits an item.
Observable<T>
takeWhile(Func1<? super T,java.lang.Boolean> predicate)
Returns an Observable that emits items emitted by the source Observable so long as each item satisfied a specified condition, and then completes as soon as this condition is not satisfied.
AssertableSubscriber<T>
test()
Creates a AssertableSubscriber that requests Long.MAX_VALUE
and subscribes it to this Observable.
AssertableSubscriber<T>
test(long initialRequestAmount)
Creates an AssertableSubscriber with the initial request amount and subscribes it to this Observable.
Observable<T>
throttleFirst(long windowDuration, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits only the first item emitted by the source Observable during sequential time windows of a specified duration.
Observable<T>
throttleFirst(long skipDuration, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits only the first item emitted by the source Observable during sequential time windows of a specified duration, where the windows are managed by a specified Scheduler.
Observable<T>
throttleLast(long intervalDuration, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits only the last item emitted by the source Observable during sequential time windows of a specified duration.
Observable<T>
throttleLast(long intervalDuration, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits only the last item emitted by the source Observable during sequential time windows of a specified duration, where the duration is governed by a specified Scheduler.
Observable<T>
throttleWithTimeout(long timeout, java.util.concurrent.TimeUnit unit)
Returns an Observable that only emits those items emitted by the source Observable that are not followed by another emitted item within a specified time window.
Observable<T>
throttleWithTimeout(long timeout, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that only emits those items emitted by the source Observable that are not followed by another emitted item within a specified time window, where the time window is governed by a specified Scheduler.
Observable<TimeInterval<T>>
timeInterval()
Returns an Observable that emits records of the time interval between consecutive items emitted by the source Observable.
Observable<TimeInterval<T>>
timeInterval(Scheduler scheduler)
Returns an Observable that emits records of the time interval between consecutive items emitted by the source Observable, where this interval is computed on a specified Scheduler.
<U,V> Observable<T>
timeout(Func0<? extends Observable<U>> firstTimeoutSelector, Func1<? super T,? extends Observable<V>> timeoutSelector)
Returns an Observable that mirrors the source Observable, but notifies observers of a TimeoutException
if either the first item emitted by the source Observable or any subsequent item doesn't arrive within time windows defined by other Observables.
<U,V> Observable<T>
timeout(Func0<? extends Observable<U>> firstTimeoutSelector, Func1<? super T,? extends Observable<V>> timeoutSelector, Observable<? extends T> other)
Returns an Observable that mirrors the source Observable, but switches to a fallback Observable if either the first item emitted by the source Observable or any subsequent item doesn't arrive within time windows defined by other Observables.
<V> Observable<T>
timeout(Func1<? super T,? extends Observable<V>> timeoutSelector)
Returns an Observable that mirrors the source Observable, but notifies observers of a TimeoutException
if an item emitted by the source Observable doesn't arrive within a window of time after the emission of the previous item, where that period of time is measured by an Observable that is a function of the previous item.
<V> Observable<T>
timeout(Func1<? super T,? extends Observable<V>> timeoutSelector, Observable<? extends T> other)
Returns an Observable that mirrors the source Observable, but that switches to a fallback Observable if an item emitted by the source Observable doesn't arrive within a window of time after the emission of the previous item, where that period of time is measured by an Observable that is a function of the previous item.
Observable<T>
timeout(long timeout, java.util.concurrent.TimeUnit timeUnit)
Returns an Observable that mirrors the source Observable but applies a timeout policy for each emitted item.
Observable<T>
timeout(long timeout, java.util.concurrent.TimeUnit timeUnit, Observable<? extends T> other)
Returns an Observable that mirrors the source Observable but applies a timeout policy for each emitted item.
Observable<T>
timeout(long timeout, java.util.concurrent.TimeUnit timeUnit, Observable<? extends T> other, Scheduler scheduler)
Returns an Observable that mirrors the source Observable but applies a timeout policy for each emitted item using a specified Scheduler.
Observable<T>
timeout(long timeout, java.util.concurrent.TimeUnit timeUnit, Scheduler scheduler)
Returns an Observable that mirrors the source Observable but applies a timeout policy for each emitted item, where this policy is governed on a specified Scheduler.
static Observable<java.lang.Long>
timer(long initialDelay, long period, java.util.concurrent.TimeUnit unit)
static Observable<java.lang.Long>
timer(long initialDelay, long period, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
static Observable<java.lang.Long>
timer(long delay, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits 0L
after a specified delay, and then completes.
static Observable<java.lang.Long>
timer(long delay, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits 0L
after a specified delay, on a specified Scheduler, and then completes.
Observable<Timestamped<T>>
timestamp()
Returns an Observable that emits each item emitted by the source Observable, wrapped in a
Timestamped
object.
Observable<Timestamped<T>>
timestamp(Scheduler scheduler)
Returns an Observable that emits each item emitted by the source Observable, wrapped in a
Timestamped
object whose timestamps are provided by a specified Scheduler.
<R> R
to(Func1<? super Observable<T>,R> converter)
Calls the specified converter function during assembly time and returns its resulting value.
BlockingObservable<T>
toBlocking()
Completable
toCompletable()
Returns a Completable that discards all onNext emissions (similar to ignoreAllElements()
) and calls onCompleted when this source observable calls onCompleted.
Observable<java.util.List<T>>
toList()
Returns an Observable that emits a single item, a list composed of all the items emitted by the source Observable.
<K> Observable<java.util.Map<K,T>>
toMap(Func1<? super T,? extends K> keySelector)
Returns an Observable that emits a single HashMap containing all items emitted by the source Observable, mapped by the keys returned by a specified keySelector
function.
<K,V> Observable<java.util.Map<K,V>>
toMap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector)
Returns an Observable that emits a single HashMap containing values corresponding to items emitted by the source Observable, mapped by the keys returned by a specified keySelector
function.
<K,V> Observable<java.util.Map<K,V>>
toMap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector, Func0<? extends java.util.Map<K,V>> mapFactory)
Returns an Observable that emits a single Map, returned by a specified mapFactory
function, that contains keys and values extracted from the items emitted by the source Observable.
<K> Observable<java.util.Map<K,java.util.Collection<T>>>
toMultimap(Func1<? super T,? extends K> keySelector)
Returns an Observable that emits a single HashMap that contains an ArrayList of items emitted by the source Observable keyed by a specified keySelector
function.
<K,V> Observable<java.util.Map<K,java.util.Collection<V>>>
toMultimap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector)
Returns an Observable that emits a single HashMap that contains an ArrayList of values extracted by a specified valueSelector
function from items emitted by the source Observable, keyed by a specified keySelector
function.
<K,V> Observable<java.util.Map<K,java.util.Collection<V>>>
toMultimap(Func1<? super T,? extends K> keySelector, Func1<? super T,? extends V> valueSelector, Func0<? extends java.util.Map<K,java.util.Collection<V>>> mapFactory)
Returns an Observable that emits a single Map, returned by a specified mapFactory
function, that contains an ArrayList of values, extracted by a specified valueSelector
function from items emitted by the source Observable and keyed by the keySelector
function.
<K,V> Observable<java.util.Map<K,java.util.Collection<V>>>
toMultimap(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)
Returns an Observable that emits a single Map, returned by a specified mapFactory
function, that contains a custom collection of values, extracted by a specified valueSelector
function from items emitted by the source Observable, and keyed by the keySelector
function.
Single<T>
toSingle()
Returns a Single that emits the single item emitted by the source Observable, if that Observable emits only a single item.
Observable<java.util.List<T>>
toSortedList()
Returns an Observable that emits a list that contains the items emitted by the source Observable, in a sorted order.
Observable<java.util.List<T>>
toSortedList(Func2<? super T,? super T,java.lang.Integer> sortFunction)
Returns an Observable that emits a list that contains the items emitted by the source Observable, in a sorted order based on a specified comparison function.
Observable<java.util.List<T>>
toSortedList(Func2<? super T,? super T,java.lang.Integer> sortFunction, int initialCapacity)
Returns an Observable that emits a list that contains the items emitted by the source Observable, in a sorted order based on a specified comparison function.
Observable<java.util.List<T>>
toSortedList(int initialCapacity)
Returns an Observable that emits a list that contains the items emitted by the source Observable, in a sorted order.
static <T> Observable<T>
unsafeCreate(Observable.OnSubscribe<T> f)
Returns an Observable that executes the given OnSubscribe action for each individual Subscriber that subscribes; unsubscription and backpressure must be implemented manually.
Subscription
unsafeSubscribe(Subscriber<? super T> subscriber)
Subscribes to an Observable and invokes
Observable.OnSubscribe
function without any contract protection, error handling, unsubscribe, or execution hooks.
Observable<T>
unsubscribeOn(Scheduler scheduler)
Modifies the source Observable so that subscribers will unsubscribe from it on a specified
Scheduler
.
static <T,Resource>
Observable<T>
using(Func0<Resource> resourceFactory, Func1<? super Resource,? extends Observable<? extends T>> observableFactory, Action1<? super Resource> disposeAction)
Constructs an Observable that creates a dependent resource object which is disposed of on unsubscription.
static <T,Resource>
Observable<T>
using(Func0<Resource> resourceFactory, Func1<? super Resource,? extends Observable<? extends T>> observableFactory, Action1<? super Resource> disposeAction, boolean disposeEagerly)
Constructs an Observable that creates a dependent resource object which is disposed of just before termination if you have set disposeEagerly
to true
and unsubscription does not occur before termination.
<TClosing> Observable<Observable<T>>
window(Func0<? extends Observable<? extends TClosing>> closingSelector)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(int count)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(int count, int skip)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, long timeshift, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, long timeshift, java.util.concurrent.TimeUnit unit, int count, Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, long timeshift, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, java.util.concurrent.TimeUnit unit)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, java.util.concurrent.TimeUnit unit, int count)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, java.util.concurrent.TimeUnit unit, int count, Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source Observable.
Observable<Observable<T>>
window(long timespan, java.util.concurrent.TimeUnit unit, Scheduler scheduler)
Returns an Observable that emits windows of items it collects from the source Observable.
<TOpening,TClosing>
Observable<Observable<T>>
window(Observable<? extends TOpening> windowOpenings, Func1<? super TOpening,? extends Observable<? extends TClosing>> closingSelector)
Returns an Observable that emits windows of items it collects from the source Observable.
<U> Observable<Observable<T>>
window(Observable<U> boundary)
Returns an Observable that emits non-overlapping windows of items it collects from the source Observable where the boundary of each window is determined by the items emitted from a specified boundary-governing Observable.
<R> Observable<R>
withLatestFrom(java.lang.Iterable<Observable<?>> others, FuncN<R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<R> Observable<R>
withLatestFrom(Observable<?>[] others, FuncN<R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<U,R> Observable<R>
withLatestFrom(Observable<? extends U> other, Func2<? super T,? super U,? extends R> resultSelector)
Merges the specified Observable into this Observable sequence by using the resultSelector
function only when the source Observable (this instance) emits an item.
<T1,T2,R> Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Func3<? super T,? super T1,? super T2,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<T1,T2,T3,R>
Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Func4<? super T,? super T1,? super T2,? super T3,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<T1,T2,T3,T4,R>
Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4, Func5<? super T,? super T1,? super T2,? super T3,? super T4,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<T1,T2,T3,T4,T5,R>
Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4, Observable<T5> o5, Func6<? super T,? super T1,? super T2,? super T3,? super T4,? super T5,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<T1,T2,T3,T4,T5,T6,R>
Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4, Observable<T5> o5, Observable<T6> o6, Func7<? super T,? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<T1,T2,T3,T4,T5,T6,T7,R>
Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4, Observable<T5> o5, Observable<T6> o6, Observable<T7> o7, Func8<? super T,? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
<T1,T2,T3,T4,T5,T6,T7,T8,R>
Observable<R>
withLatestFrom(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4, Observable<T5> o5, Observable<T6> o6, Observable<T7> o7, Observable<T8> o8, Func9<? super T,? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,R> combiner)
Combines the value emission from this Observable with the latest emissions from the other Observables via a function to produce the output item.
static <R> Observable<R>
zip(java.lang.Iterable<? extends Observable<?>> ws, FuncN<? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of items emitted, in sequence, by an Iterable of other Observables.
static <R> Observable<R>
zip(Observable<?>[] ws, FuncN<? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of items emitted, in sequence, by an array of other Observables.
static <R> Observable<R>
zip(Observable<? extends Observable<?>> ws, FuncN<? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of n items emitted, in sequence, by the n Observables emitted by a specified Observable.
static <T1,T2,R> Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Func2<? super T1,? super T2,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of two items emitted, in sequence, by two other Observables.
static <T1,T2,T3,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Func3<? super T1,? super T2,? super T3,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of three items emitted, in sequence, by three other Observables.
static <T1,T2,T3,T4,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Func4<? super T1,? super T2,? super T3,? super T4,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of four items emitted, in sequence, by four other Observables.
static <T1,T2,T3,T4,T5,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Func5<? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of five items emitted, in sequence, by five other Observables.
static <T1,T2,T3,T4,T5,T6,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Func6<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of six items emitted, in sequence, by six other Observables.
static <T1,T2,T3,T4,T5,T6,T7,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Func7<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of seven items emitted, in sequence, by seven other Observables.
static <T1,T2,T3,T4,T5,T6,T7,T8,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Observable<? extends T8> o8, Func8<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of eight items emitted, in sequence, by eight other Observables.
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R>
Observable<R>
zip(Observable<? extends T1> o1, Observable<? extends T2> o2, Observable<? extends T3> o3, Observable<? extends T4> o4, Observable<? extends T5> o5, Observable<? extends T6> o6, Observable<? extends T7> o7, Observable<? extends T8> o8, Observable<? extends T9> o9, Func9<? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? super T9,? extends R> zipFunction)
Returns an Observable that emits the results of a specified combiner function applied to combinations of nine items emitted, in sequence, by nine other Observables.
<T2,R> Observable<R>
zipWith(java.lang.Iterable<? extends T2> other, Func2<? super T,? super T2,? extends R> zipFunction)
Returns an Observable that emits items that are the result of applying a specified function to pairs of values, one each from the source Observable and a specified Iterable sequence.
<T2,R> Observable<R>
zipWith(Observable<? extends T2> other, Func2<? super T,? super T2,? extends R> zipFunction)
Returns an Observable that emits items that are the result of applying a specified function to pairs of values, one each from the source Observable and another specified Observable.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4