RxJava



rx.operators
Class OperationJoinPatterns

java.lang.Object
  extended by rx.operators.OperationJoinPatterns

public class OperationJoinPatterns
extends java.lang.Object

Join patterns: And, Then, When.


Constructor Summary
OperationJoinPatterns()
           
 
Method Summary
static
<T1,T2> Pattern2<T1,T2>
and(Observable<T1> left, Observable<T2> right)
          Creates a pattern that matches when both observable sequences have an available element.
static
<T1,R> Plan0<R>
then(Observable<T1> source, Func1<T1,R> selector)
          Matches when the observable sequence has an available element and projects the element by invoking the selector function.
static
<R> Observable.OnSubscribeFunc<R>
when(java.lang.Iterable<? extends Plan0<R>> plans)
          Joins together the results from several patterns.
static
<R> Observable.OnSubscribeFunc<R>
when(Plan0<R>... plans)
          Joins together the results from several patterns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationJoinPatterns

public OperationJoinPatterns()
Method Detail

and

public static <T1,T2> Pattern2<T1,T2> and(Observable<T1> left,
                                          Observable<T2> right)
Creates a pattern that matches when both observable sequences have an available element.


then

public static <T1,R> Plan0<R> then(Observable<T1> source,
                                   Func1<T1,R> selector)
Matches when the observable sequence has an available element and projects the element by invoking the selector function.


when

public static <R> Observable.OnSubscribeFunc<R> when(Plan0<R>... plans)
Joins together the results from several patterns.


when

public static <R> Observable.OnSubscribeFunc<R> when(java.lang.Iterable<? extends Plan0<R>> plans)
Joins together the results from several patterns.