Package rx.functions
Class Functions
java.lang.Object
rx.functions.Functions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromAction
(Action1<? super T0> f) fromAction
(Action2<? super T0, ? super T1> f) fromAction
(Action3<? super T0, ? super T1, ? super T2> f) static <R> FuncN
<R> static <T0,
R> FuncN <R> static <T0,
T1, R>
FuncN<R> static <T0,
T1, T2, R>
FuncN<R> static <T0,
T1, T2, T3, R>
FuncN<R> static <T0,
T1, T2, T3, T4, R>
FuncN<R> static <T0,
T1, T2, T3, T4, T5, R>
FuncN<R> static <T0,
T1, T2, T3, T4, T5, T6, R>
FuncN<R> fromFunc
(Func7<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f) static <T0,
T1, T2, T3, T4, T5, T6, T7, R>
FuncN<R> fromFunc
(Func8<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f) static <T0,
T1, T2, T3, T4, T5, T6, T7, T8, R>
FuncN<R>
-
Constructor Details
-
Functions
private Functions()
-
-
Method Details
-
fromFunc
- Type Parameters:
R
- the result type- Parameters:
f
- theFunc0
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
- Type Parameters:
T0
- the first argument typeR
- the result type- Parameters:
f
- theFunc1
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
- Type Parameters:
T0
- the first argument typeT1
- the second argument typeR
- the result type- Parameters:
f
- theFunc2
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, R> (Func3<? super T0, ? super T1, ? super T2, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeR
- the result type- Parameters:
f
- theFunc3
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, T3, R> (Func4<? super T0, ? super T1, ? super T2, ? super T3, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeT3
- the fourth argument typeR
- the result type- Parameters:
f
- theFunc4
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, T3, T4, R> (Func5<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeT3
- the fourth argument typeT4
- the fifth argument typeR
- the result type- Parameters:
f
- theFunc5
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, T3, T4, T5, R> (Func6<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeT3
- the fourth argument typeT4
- the fifth argument typeT5
- the sixth argument typeR
- the result type- Parameters:
f
- theFunc6
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, T3, T4, T5, T6, R> (Func7<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeT3
- the fourth argument typeT4
- the fifth argument typeT5
- the sixth argument typeT6
- the seventh argument typeR
- the result type- Parameters:
f
- theFunc7
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, T3, T4, T5, T6, T7, R> (Func8<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeT3
- the fourth argument typeT4
- the fifth argument typeT5
- the sixth argument typeT6
- the seventh argument typeT7
- the eigth argument typeR
- the result type- Parameters:
f
- theFunc8
to convert- Returns:
- a
FuncN
representation off
-
fromFunc
public static <T0,T1, FuncN<R> fromFuncT2, T3, T4, T5, T6, T7, T8, R> (Func9<? super T0, ? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R> f) - Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument typeT3
- the fourth argument typeT4
- the fifth argument typeT5
- the sixth argument typeT6
- the seventh argument typeT7
- the eigth argument typeT8
- the ninth argument typeR
- the result type- Parameters:
f
- theFunc9
to convert- Returns:
- a
FuncN
representation off
-
fromAction
- Parameters:
f
- theAction0
to convert- Returns:
- a
FuncN
representation off
-
fromAction
- Type Parameters:
T0
- the first argument type- Parameters:
f
- theAction1
to convert- Returns:
- a
FuncN
representation off
-
fromAction
- Type Parameters:
T0
- the first argument typeT1
- the second argument type- Parameters:
f
- theAction2
to convert- Returns:
- a
FuncN
representation off
-
fromAction
- Type Parameters:
T0
- the first argument typeT1
- the second argument typeT2
- the third argument type- Parameters:
f
- theAction3
to convert- Returns:
- a
FuncN
representation off
-