T1
- the first value typeT2
- the second value typepublic final class Pattern2<T1,T2> extends Object
Constructor and Description |
---|
Pattern2(Observable<T1> o1,
Observable<T2> o2) |
Modifier and Type | Method and Description |
---|---|
<T3> Pattern3<T1,T2,T3> |
and(Observable<T3> other)
Creates a pattern that matches when all three observable sequences have an available element.
|
<R> Plan<R> |
then(BiFunction<T1,T2,R> selector)
Matches when all observable sequences have an available
element and projects the elements by invoking the selector function.
|
public Pattern2(Observable<T1> o1, Observable<T2> o2)
public <T3> Pattern3<T1,T2,T3> and(Observable<T3> other)
T3
- the value type of the extra Observableother
- Observable sequence to match with the two previous sequences.public <R> Plan<R> then(BiFunction<T1,T2,R> selector)
R
- the result typeselector
- the function that will be invoked for elements in the source sequences.NullPointerException
- if selector is null