public final class Functions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> rx.functions.Func1<T,Boolean> |
alwaysFalse() |
static <T> rx.functions.Func1<T,Boolean> |
alwaysTrue() |
static <T,R> rx.functions.Func1<T,R> |
constant(R r) |
static <T> rx.functions.Func1<T,T> |
identity() |
static <T> rx.functions.Func1<Iterable<T>,rx.Observable<T>> |
iterableToObservable() |
static <T> rx.functions.Func1<T,rx.Observable<T>> |
just() |
static <T> rx.functions.Func1<T,Boolean> |
not(rx.functions.Func1<T,Boolean> f) |
static <T> rx.functions.Func1<T,rx.Observable<T>> |
parallel(rx.Scheduler scheduler)
Returns a function that is expected to be used for performing parallel
processing of an observable sequence via flatMap for instance.
|
public static <T> rx.functions.Func1<T,T> identity()
public static <T> rx.functions.Func1<T,Boolean> alwaysTrue()
public static <T> rx.functions.Func1<T,Boolean> alwaysFalse()
public static <T,R> rx.functions.Func1<T,R> constant(R r)
public static <T> rx.functions.Func1<T,rx.Observable<T>> parallel(rx.Scheduler scheduler)
Returns a function that is expected to be used for performing parallel processing of an observable sequence via flatMap for instance. For example:
source.flatMap(parallel(Schedulers.computation()));scheduler - to be used for subscription to the function inputpublic static <T> rx.functions.Func1<T,rx.Observable<T>> just()
public static <T> rx.functions.Func1<Iterable<T>,rx.Observable<T>> iterableToObservable()
Copyright © 2013–2014. All rights reserved.