Constructor and Description |
---|
FunctionExtensions() |
Modifier and Type | Method and Description |
---|---|
static <P1,RESULT> |
curry(Functions.Function1<? super P1,? extends RESULT> function,
P1 argument)
Curries a function that takes one argument.
|
static <P1,P2,RESULT> |
curry(Functions.Function2<? super P1,? super P2,? extends RESULT> function,
P1 argument)
Curries a function that takes two arguments.
|
static <P1,P2,P3,RESULT> |
curry(Functions.Function3<? super P1,? super P2,? super P3,? extends RESULT> function,
P1 argument)
Curries a function that takes three arguments.
|
static <P1,P2,P3,P4,RESULT> |
curry(Functions.Function4<? super P1,? super P2,? super P3,? super P4,? extends RESULT> function,
P1 argument)
Curries a function that takes four arguments.
|
static <P1,P2,P3,P4,P5,RESULT> |
curry(Functions.Function5<? super P1,? super P2,? super P3,? super P4,? super P5,? extends RESULT> function,
P1 argument)
Curries a function that takes five arguments.
|
static <P1,P2,P3,P4,P5,P6,RESULT> |
curry(Functions.Function6<? super P1,? super P2,? super P3,? super P4,? super P5,? super P6,? extends RESULT> function,
P1 argument)
Curries a function that takes six arguments.
|
@Pure public static <P1,RESULT> Functions.Function0<RESULT> curry(Functions.Function1<? super P1,? extends RESULT> function, P1 argument)
function
- the original function. May not be null
.argument
- the fixed argument.null
.@Pure public static <P1,P2,RESULT> Functions.Function1<P2,RESULT> curry(Functions.Function2<? super P1,? super P2,? extends RESULT> function, P1 argument)
function
- the original function. May not be null
.argument
- the fixed first argument of function
.null
.@Pure public static <P1,P2,P3,RESULT> Functions.Function2<P2,P3,RESULT> curry(Functions.Function3<? super P1,? super P2,? super P3,? extends RESULT> function, P1 argument)
function
- the original function. May not be null
.argument
- the fixed first argument of function
.null
.@Pure public static <P1,P2,P3,P4,RESULT> Functions.Function3<P2,P3,P4,RESULT> curry(Functions.Function4<? super P1,? super P2,? super P3,? super P4,? extends RESULT> function, P1 argument)
function
- the original function. May not be null
.argument
- the fixed first argument of function
.null
.@Pure public static <P1,P2,P3,P4,P5,RESULT> Functions.Function4<P2,P3,P4,P5,RESULT> curry(Functions.Function5<? super P1,? super P2,? super P3,? super P4,? super P5,? extends RESULT> function, P1 argument)
function
- the original function. May not be null
.argument
- the fixed first argument of function
.null
.@Pure public static <P1,P2,P3,P4,P5,P6,RESULT> Functions.Function5<P2,P3,P4,P5,P6,RESULT> curry(Functions.Function6<? super P1,? super P2,? super P3,? super P4,? super P5,? super P6,? extends RESULT> function, P1 argument)
function
- the original function. May not be null
.argument
- the fixed first argument of function
.null
.