public final class ObservableTransformers
extends java.lang.Object
ObservableTransformer,
use Observable.compose(ObservableTransformer)
to apply the operators to an existing sequence.| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.ObservableTransformer<T,java.lang.Long> |
indexOf(io.reactivex.functions.Predicate<? super T> predicate)
Returns the first index of an element that matches a predicate or -1L if no elements match.
|
@SchedulerSupport(value="none") @BackpressureSupport(value=UNBOUNDED_IN) public static <T> io.reactivex.ObservableTransformer<T,java.lang.Long> indexOf(io.reactivex.functions.Predicate<? super T> predicate)
T - the upstream element typepredicate - the predicate called to test each item, returning true will
stop the sequence and return the current item index