| 程序包 | 说明 |
|---|---|
| com.firefly.utils.function |
| 限定符和类型 | 方法和说明 |
|---|---|
static FuncN<Void> |
Functions.fromAction(Action0 f)
|
static <T0> FuncN<Void> |
Functions.fromAction(Action1<? super T0> f)
|
static <T0,T1> FuncN<Void> |
Functions.fromAction(Action2<? super T0,? super T1> f)
|
static <T0,T1,T2> FuncN<Void> |
Functions.fromAction(Action3<? super T0,? super T1,? super T2> f)
|
static <R> FuncN<R> |
Functions.fromFunc(Func0<? extends R> f)
|
static <T0,R> FuncN<R> |
Functions.fromFunc(Func1<? super T0,? extends R> f)
|
static <T0,T1,R> FuncN<R> |
Functions.fromFunc(Func2<? super T0,? super T1,? extends R> f)
|
static <T0,T1,T2,R> |
Functions.fromFunc(Func3<? super T0,? super T1,? super T2,? extends R> f)
|
static <T0,T1,T2,T3,R> |
Functions.fromFunc(Func4<? super T0,? super T1,? super T2,? super T3,? extends R> f)
|
static <T0,T1,T2,T3,T4,R> |
Functions.fromFunc(Func5<? super T0,? super T1,? super T2,? super T3,? super T4,? extends R> f)
|
static <T0,T1,T2,T3,T4,T5,R> |
Functions.fromFunc(Func6<? super T0,? super T1,? super T2,? super T3,? super T4,? super T5,? extends R> f)
|
static <T0,T1,T2,T3,T4,T5,T6,R> |
Functions.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> |
Functions.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> |
Functions.fromFunc(Func9<? super T0,? super T1,? super T2,? super T3,? super T4,? super T5,? super T6,? super T7,? super T8,? extends R> f)
|
static FuncN<Void> |
Actions.toFunc(ActionN action)
Converts an
ActionN to a function that calls the action and returns null. |
static <R> FuncN<R> |
Actions.toFunc(ActionN action,
R result)
Converts an
ActionN to a function that calls the action and returns a specified value. |
Copyright © 2016. All rights reserved.