Package hu.akarnokd.rxjava3.joins
Class Pattern4<T1,T2,T3,T4>
- java.lang.Object
-
- hu.akarnokd.rxjava3.joins.Pattern4<T1,T2,T3,T4>
-
- Type Parameters:
T1- the first value typeT2- the second value typeT3- the third value typeT4- the fourth value type
public final class Pattern4<T1,T2,T3,T4> extends java.lang.ObjectRepresents a join pattern over observable sequences.
-
-
Constructor Summary
Constructors Constructor Description Pattern4(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T5> Pattern5<T1,T2,T3,T4,T5>and(Observable<T5> other)Creates a pattern that matches when all four observable sequences have an available element.<R> Plan<R>then(Function4<T1,T2,T3,T4,R> selector)Matches when all observable sequences have an available element and projects the elements by invoking the selector function.
-
-
-
Constructor Detail
-
Pattern4
public Pattern4(Observable<T1> o1, Observable<T2> o2, Observable<T3> o3, Observable<T4> o4)
-
-
Method Detail
-
and
public <T5> Pattern5<T1,T2,T3,T4,T5> and(Observable<T5> other)
Creates a pattern that matches when all four observable sequences have an available element.- Type Parameters:
T5- the value type of the extra Observable- Parameters:
other- Observable sequence to match with the three previous sequences.- Returns:
- Pattern object that matches when all observable sequences have an available element.
-
then
public <R> Plan<R> then(Function4<T1,T2,T3,T4,R> selector)
Matches when all observable sequences have an available element and projects the elements by invoking the selector function.- Type Parameters:
R- the result type- Parameters:
selector- the function that will be invoked for elements in the source sequences.- Returns:
- the plan for the matching
- Throws:
java.lang.NullPointerException- if selector is null
-
-