T
- the value type joinedpublic final class JoinObservable<T> extends Object
Modifier and Type | Method and Description |
---|---|
<T2> Pattern2<T,T2> |
and(Observable<T2> right)
Returns a Pattern that matches when both Observables emit an item.
|
static <T> JoinObservable<T> |
from(Observable<T> o)
Creates a JoinObservable from a regular Observable.
|
<R> Plan<R> |
then(Function<? super T,? extends R> selector)
Matches when the Observable has an available item and projects the item by invoking the selector
function.
|
Observable<T> |
toObservable() |
static <R> JoinObservable<R> |
when(Iterable<? extends Plan<R>> plans)
Joins together the results from several patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R>... plans)
Joins together the results from several patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1)
Joins the results from a pattern via its plan.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2)
Joins together the results from two patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3)
Joins together the results from three patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3,
Plan<R> p4)
Joins together the results from four patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3,
Plan<R> p4,
Plan<R> p5)
Joins together the results from five patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3,
Plan<R> p4,
Plan<R> p5,
Plan<R> p6)
Joins together the results from six patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3,
Plan<R> p4,
Plan<R> p5,
Plan<R> p6,
Plan<R> p7)
Joins together the results from seven patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3,
Plan<R> p4,
Plan<R> p5,
Plan<R> p6,
Plan<R> p7,
Plan<R> p8)
Joins together the results from eight patterns via their plans.
|
static <R> JoinObservable<R> |
when(Plan<R> p1,
Plan<R> p2,
Plan<R> p3,
Plan<R> p4,
Plan<R> p5,
Plan<R> p6,
Plan<R> p7,
Plan<R> p8,
Plan<R> p9)
Joins together the results from nine patterns via their plans.
|
public static <T> JoinObservable<T> from(Observable<T> o)
T
- the value typeo
- the observable to wrappublic <T2> Pattern2<T,T2> and(Observable<T2> right)
T2
- the value type of the right Observableright
- an Observable to match with the source ObservableNullPointerException
- if right
is nullpublic static <R> JoinObservable<R> when(Iterable<? extends Plan<R>> plans)
R
- the result typeplans
- a series of plans created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on patternsNullPointerException
- if plans
is null@SafeVarargs public static <R> JoinObservable<R> when(Plan<R>... plans)
R
- the result typeplans
- a series of plans created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on patternsNullPointerException
- if plans
is nullpublic static <R> JoinObservable<R> when(Plan<R> p1)
R
- the result typep1
- the plan to join, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3, Plan<R> p4)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp4
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3, Plan<R> p4, Plan<R> p5)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp4
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp5
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3, Plan<R> p4, Plan<R> p5, Plan<R> p6)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp4
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp5
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp6
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3, Plan<R> p4, Plan<R> p5, Plan<R> p6, Plan<R> p7)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp4
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp5
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp6
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp7
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3, Plan<R> p4, Plan<R> p5, Plan<R> p6, Plan<R> p7, Plan<R> p8)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp4
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp5
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp6
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp7
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp8
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic static <R> JoinObservable<R> when(Plan<R> p1, Plan<R> p2, Plan<R> p3, Plan<R> p4, Plan<R> p5, Plan<R> p6, Plan<R> p7, Plan<R> p8, Plan<R> p9)
R
- the result typep1
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp2
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp3
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp4
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp5
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp6
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp7
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp8
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternp9
- a plan, created by use of the then(io.reactivex.rxjava3.functions.Function<? super T, ? extends R>)
Observer on a patternpublic <R> Plan<R> then(Function<? super T,? extends R> selector)
R
- the result typeselector
- selector that will be invoked for items emitted by the source ObservablePlan
that produces the projected results, to be fed (with other Plans) to the when(java.lang.Iterable<? extends hu.akarnokd.rxjava3.joins.Plan<R>>)
ObserverNullPointerException
- if selector
is nullpublic Observable<T> toObservable()