Top Constructors Methods
rx.functions

public final Class Functions

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FuncN<Void>

Returns:

a FuncN representation of f
fromAction
(final Action0
the Action0 to convert
f
)

Converts an Action0 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
>
FuncN<Void>

Returns:

a FuncN representation of f
fromAction
(final Action1<? super T0>
the Action1 to convert
f
)

Converts an Action1 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
>
FuncN<Void>

Returns:

a FuncN representation of f
fromAction
(final Action2<? super T0, ? super T1>
the Action2 to convert
f
)

Converts an Action2 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
>
FuncN<Void>

Returns:

a FuncN representation of f
fromAction
(final Action3<? super T0, ? super T1, ? super T2>
the Action3 to convert
f
)

Converts an Action3 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func0<? extends R>
the Func0 to convert
f
)

Converts a Func0 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func1<? super T0, ? extends R>
the Func1 to convert
f
)

Converts a Func1 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func2<? super T0, ? super T1, ? extends R>
the Func2 to convert
f
)

Converts a Func2 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func3<? super T0, ? super T1, ? super T2, ? extends R>
the Func3 to convert
f
)

Converts a Func3 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the fourth argument type
T3
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func4<? super T0, ? super T1, ? super T2, ? super T3, ? extends R>
the Func4 to convert
f
)

Converts a Func4 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the fourth argument type
T3
,
the fifth argument type
T4
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func5<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? extends R>
the Func5 to convert
f
)

Converts a Func5 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the fourth argument type
T3
,
the fifth argument type
T4
,
the sixth argument type
T5
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func6<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R>
the Func6 to convert
f
)

Converts a Func6 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the fourth argument type
T3
,
the fifth argument type
T4
,
the sixth argument type
T5
,
the seventh argument type
T6
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func7<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R>
the Func7 to convert
f
)

Converts a Func7 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the fourth argument type
T3
,
the fifth argument type
T4
,
the sixth argument type
T5
,
the seventh argument type
T6
,
the eighth argument type
T7
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func8<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R>
the Func8 to convert
f
)

Converts a Func8 to a FuncN to allow heterogeneous handling of functions with different arities.

public static <
the first argument type
T0
,
the second argument type
T1
,
the third argument type
T2
,
the fourth argument type
T3
,
the fifth argument type
T4
,
the sixth argument type
T5
,
the seventh argument type
T6
,
the eighth argument type
T7
,
the ninth argument type
T8
,
the result type
R
>
FuncN<R>

Returns:

a FuncN representation of f
fromFunc
(final Func9<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R>
the Func9 to convert
f
)

Converts a Func9 to a FuncN to allow heterogeneous handling of functions with different arities.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Functionsback to summary
private Functions()

Method Detail

fromActionback to summary
public static FuncN<Void> fromAction(final Action0 f)

Converts an Action0 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
f:Action0

the Action0 to convert

Returns:FuncN<Void>

a FuncN representation of f

fromActionback to summary
public static <T0> FuncN<Void> fromAction(final Action1<? super T0> f)

Converts an Action1 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
f:Action1<? super T0>

the Action1 to convert

Returns:FuncN<Void>

a FuncN representation of f

fromActionback to summary
public static <T0, T1> FuncN<Void> fromAction(final Action2<? super T0, ? super T1> f)

Converts an Action2 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
f:Action2<? super T0, ? super T1>

the Action2 to convert

Returns:FuncN<Void>

a FuncN representation of f

fromActionback to summary
public static <T0, T1, T2> FuncN<Void> fromAction(final Action3<? super T0, ? super T1, ? super T2> f)

Converts an Action3 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
f:Action3<? super T0, ? super T1, ? super T2>

the Action3 to convert

Returns:FuncN<Void>

a FuncN representation of f

fromFuncback to summary
public static <R> FuncN<R> fromFunc(final Func0<? extends R> f)

Converts a Func0 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<R>
the result type
f:Func0<? extends R>

the Func0 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, R> FuncN<R> fromFunc(final Func1<? super T0, ? extends R> f)

Converts a Func1 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<R>
the result type
f:Func1<? super T0, ? extends R>

the Func1 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, R> FuncN<R> fromFunc(final Func2<? super T0, ? super T1, ? extends R> f)

Converts a Func2 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<R>
the result type
f:Func2<? super T0, ? super T1, ? extends R>

the Func2 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, R> FuncN<R> fromFunc(final Func3<? super T0, ? super T1, ? super T2, ? extends R> f)

Converts a Func3 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<R>
the result type
f:Func3<? super T0, ? super T1, ? super T2, ? extends R>

the Func3 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, T3, R> FuncN<R> fromFunc(final Func4<? super T0, ? super T1, ? super T2, ? super T3, ? extends R> f)

Converts a Func4 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<T3>
the fourth argument type
<R>
the result type
f:Func4<? super T0, ? super T1, ? super T2, ? super T3, ? extends R>

the Func4 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, T3, T4, R> FuncN<R> fromFunc(final Func5<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? extends R> f)

Converts a Func5 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<T3>
the fourth argument type
<T4>
the fifth argument type
<R>
the result type
f:Func5<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? extends R>

the Func5 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, T3, T4, T5, R> FuncN<R> fromFunc(final Func6<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> f)

Converts a Func6 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<T3>
the fourth argument type
<T4>
the fifth argument type
<T5>
the sixth argument type
<R>
the result type
f:Func6<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R>

the Func6 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, T3, T4, T5, T6, R> FuncN<R> fromFunc(final Func7<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f)

Converts a Func7 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<T3>
the fourth argument type
<T4>
the fifth argument type
<T5>
the sixth argument type
<T6>
the seventh argument type
<R>
the result type
f:Func7<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R>

the Func7 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, T3, T4, T5, T6, T7, R> FuncN<R> fromFunc(final Func8<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f)

Converts a Func8 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<T3>
the fourth argument type
<T4>
the fifth argument type
<T5>
the sixth argument type
<T6>
the seventh argument type
<T7>
the eighth argument type
<R>
the result type
f:Func8<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R>

the Func8 to convert

Returns:FuncN<R>

a FuncN representation of f

fromFuncback to summary
public static <T0, T1, T2, T3, T4, T5, T6, T7, T8, R> FuncN<R> fromFunc(final Func9<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> f)

Converts a Func9 to a FuncN to allow heterogeneous handling of functions with different arities.

Parameters
<T0>
the first argument type
<T1>
the second argument type
<T2>
the third argument type
<T3>
the fourth argument type
<T4>
the fifth argument type
<T5>
the sixth argument type
<T6>
the seventh argument type
<T7>
the eighth argument type
<T8>
the ninth argument type
<R>
the result type
f:Func9<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R>

the Func9 to convert

Returns:FuncN<R>

a FuncN representation of f