RxJava



rx.util.functions
Class Actions

java.lang.Object
  extended by rx.util.functions.Actions

Deprecated.

@Deprecated
public final class Actions
extends java.lang.Object


Method Summary
static rx.util.functions.Actions.EmptyAction empty()
          Deprecated.  
static
<T> Action0
onCompletedFrom(Observer<T> observer)
          Deprecated. Extracts a method reference to the observer's onCompleted method in the form of an Action0.
static
<T> Action1<java.lang.Throwable>
onErrorFrom(Observer<T> observer)
          Deprecated. Extracts a method reference to the observer's onError method in the form of an Action1.
static
<T> Action1<T>
onNextFrom(Observer<T> observer)
          Deprecated. Extracts a method reference to the observer's onNext method in the form of an Action1.
static Func0<java.lang.Void> toFunc(Action0 action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<R> Func0<R>
toFunc(Action0 action, R result)
          Deprecated. Convert an action to a function which calls the action returns the given result.
static
<T1> Func1<T1,java.lang.Void>
toFunc(Action1<T1> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,R> Func1<T1,R>
toFunc(Action1<T1> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2> Func2<T1,T2,java.lang.Void>
toFunc(Action2<T1,T2> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,R> Func2<T1,T2,R>
toFunc(Action2<T1,T2> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3> Func3<T1,T2,T3,java.lang.Void>
toFunc(Action3<T1,T2,T3> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,R>
Func3<T1,T2,T3,R>
toFunc(Action3<T1,T2,T3> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4>
Func4<T1,T2,T3,T4,java.lang.Void>
toFunc(Action4<T1,T2,T3,T4> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,R>
Func4<T1,T2,T3,T4,R>
toFunc(Action4<T1,T2,T3,T4> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5>
Func5<T1,T2,T3,T4,T5,java.lang.Void>
toFunc(Action5<T1,T2,T3,T4,T5> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,R>
Func5<T1,T2,T3,T4,T5,R>
toFunc(Action5<T1,T2,T3,T4,T5> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6>
Func6<T1,T2,T3,T4,T5,T6,java.lang.Void>
toFunc(Action6<T1,T2,T3,T4,T5,T6> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,R>
Func6<T1,T2,T3,T4,T5,T6,R>
toFunc(Action6<T1,T2,T3,T4,T5,T6> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,T7>
Func7<T1,T2,T3,T4,T5,T6,T7,java.lang.Void>
toFunc(Action7<T1,T2,T3,T4,T5,T6,T7> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,T7,R>
Func7<T1,T2,T3,T4,T5,T6,T7,R>
toFunc(Action7<T1,T2,T3,T4,T5,T6,T7> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,T7,T8>
Func8<T1,T2,T3,T4,T5,T6,T7,T8,java.lang.Void>
toFunc(Action8<T1,T2,T3,T4,T5,T6,T7,T8> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,T7,T8,R>
Func8<T1,T2,T3,T4,T5,T6,T7,T8,R>
toFunc(Action8<T1,T2,T3,T4,T5,T6,T7,T8> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,T7,T8,T9>
Func9<T1,T2,T3,T4,T5,T6,T7,T8,T9,java.lang.Void>
toFunc(Action9<T1,T2,T3,T4,T5,T6,T7,T8,T9> action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<T1,T2,T3,T4,T5,T6,T7,T8,T9,R>
Func9<T1,T2,T3,T4,T5,T6,T7,T8,T9,R>
toFunc(Action9<T1,T2,T3,T4,T5,T6,T7,T8,T9> action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static FuncN<java.lang.Void> toFunc(ActionN action)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
static
<R> FuncN<R>
toFunc(ActionN action, R result)
          Deprecated. Convert an action to a function which calls the action returns Void (null).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

empty

public static final rx.util.functions.Actions.EmptyAction empty()
Deprecated. 

onNextFrom

public static <T> Action1<T> onNextFrom(Observer<T> observer)
Deprecated. 
Extracts a method reference to the observer's onNext method in the form of an Action1.

Java 8: observer::onNext

Parameters:
observer - the observer to use
Returns:
an action which calls the observer's onNext method.

onErrorFrom

public static <T> Action1<java.lang.Throwable> onErrorFrom(Observer<T> observer)
Deprecated. 
Extracts a method reference to the observer's onError method in the form of an Action1.

Java 8: observer::onError

Parameters:
observer - the observer to use
Returns:
an action which calls the observer's onError method.

onCompletedFrom

public static <T> Action0 onCompletedFrom(Observer<T> observer)
Deprecated. 
Extracts a method reference to the observer's onCompleted method in the form of an Action0.

Java 8: observer::onCompleted

Parameters:
observer - the observer to use
Returns:
an action which calls the observer's onCompleted method.

toFunc

public static Func0<java.lang.Void> toFunc(Action0 action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1> Func1<T1,java.lang.Void> toFunc(Action1<T1> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2> Func2<T1,T2,java.lang.Void> toFunc(Action2<T1,T2> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3> Func3<T1,T2,T3,java.lang.Void> toFunc(Action3<T1,T2,T3> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4> Func4<T1,T2,T3,T4,java.lang.Void> toFunc(Action4<T1,T2,T3,T4> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5> Func5<T1,T2,T3,T4,T5,java.lang.Void> toFunc(Action5<T1,T2,T3,T4,T5> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6> Func6<T1,T2,T3,T4,T5,T6,java.lang.Void> toFunc(Action6<T1,T2,T3,T4,T5,T6> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,T7> Func7<T1,T2,T3,T4,T5,T6,T7,java.lang.Void> toFunc(Action7<T1,T2,T3,T4,T5,T6,T7> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,T7,T8> Func8<T1,T2,T3,T4,T5,T6,T7,T8,java.lang.Void> toFunc(Action8<T1,T2,T3,T4,T5,T6,T7,T8> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,T7,T8,T9> Func9<T1,T2,T3,T4,T5,T6,T7,T8,T9,java.lang.Void> toFunc(Action9<T1,T2,T3,T4,T5,T6,T7,T8,T9> action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static FuncN<java.lang.Void> toFunc(ActionN action)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
Returns:
Func0

toFunc

public static <R> Func0<R> toFunc(Action0 action,
                                  R result)
Deprecated. 
Convert an action to a function which calls the action returns the given result.

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,R> Func1<T1,R> toFunc(Action1<T1> action,
                                        R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,R> Func2<T1,T2,R> toFunc(Action2<T1,T2> action,
                                              R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,R> Func3<T1,T2,T3,R> toFunc(Action3<T1,T2,T3> action,
                                                    R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,R> Func4<T1,T2,T3,T4,R> toFunc(Action4<T1,T2,T3,T4> action,
                                                          R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,R> Func5<T1,T2,T3,T4,T5,R> toFunc(Action5<T1,T2,T3,T4,T5> action,
                                                                R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,R> Func6<T1,T2,T3,T4,T5,T6,R> toFunc(Action6<T1,T2,T3,T4,T5,T6> action,
                                                                      R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,T7,R> Func7<T1,T2,T3,T4,T5,T6,T7,R> toFunc(Action7<T1,T2,T3,T4,T5,T6,T7> action,
                                                                            R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,T7,T8,R> Func8<T1,T2,T3,T4,T5,T6,T7,T8,R> toFunc(Action8<T1,T2,T3,T4,T5,T6,T7,T8> action,
                                                                                  R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <T1,T2,T3,T4,T5,T6,T7,T8,T9,R> Func9<T1,T2,T3,T4,T5,T6,T7,T8,T9,R> toFunc(Action9<T1,T2,T3,T4,T5,T6,T7,T8,T9> action,
                                                                                        R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0

toFunc

public static <R> FuncN<R> toFunc(ActionN action,
                                  R result)
Deprecated. 
Convert an action to a function which calls the action returns Void (null).

Parameters:
action -
result -
Returns:
Func0