public final class Functionals
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static rx.functions.Action0 |
empty()
Return an Action0 instance which does nothing.
|
static rx.functions.Action1<java.lang.Throwable> |
emptyThrowable()
Return an action which takes a Throwable and does nothing.
|
static rx.functions.Action0 |
fromRunnable(java.lang.Runnable run,
rx.Scheduler.Worker inner)
Converts a runnable instance into an Action0 instance.
|
static java.lang.Runnable |
toRunnable(rx.functions.Action0 action)
Converts an Action0 instance into a Runnable instance.
|
public static rx.functions.Action1<java.lang.Throwable> emptyThrowable()
(To avoid casting from the generic empty1().)
public static rx.functions.Action0 empty()
public static rx.functions.Action0 fromRunnable(java.lang.Runnable run,
rx.Scheduler.Worker inner)
run - the Runnable to run when the Action0 is calledpublic static java.lang.Runnable toRunnable(rx.functions.Action0 action)
action - the Action0 to call when the Runnable is run