| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xbase.lib.FunctionExtensions
public class FunctionExtensions
This is an extension library for functions, e.g. closures.
Functions| Constructor Summary | |
|---|---|
FunctionExtensions()
 | 
|
| Method Summary | ||
|---|---|---|
static
 | 
curry(Functions.Function1<P1,RESULT> function,
      P1 argument)
Curries a function that takes one argument.  | 
|
static
 | 
curry(Functions.Function2<P1,P2,RESULT> function,
      P1 argument)
Curries a function that takes two arguments.  | 
|
static
 | 
curry(Functions.Function3<P1,P2,P3,RESULT> function,
      P1 argument)
Curries a function that takes three arguments.  | 
|
static
 | 
curry(Functions.Function4<P1,P2,P3,P4,RESULT> function,
      P1 argument)
Curries a function that takes four arguments.  | 
|
static
 | 
curry(Functions.Function5<P1,P2,P3,P4,P5,RESULT> function,
      P1 argument)
Curries a function that takes five arguments.  | 
|
static
 | 
curry(Functions.Function6<P1,P2,P3,P4,P5,P6,RESULT> function,
      P1 argument)
Curries a function that takes six arguments.  | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FunctionExtensions()
| Method Detail | 
|---|
public static <P1,RESULT> Functions.Function0<RESULT> curry(Functions.Function1<P1,RESULT> function,
                                                            P1 argument)
function - the original function. May not be null.argument - the fixed argument.
null.
public static <P1,P2,RESULT> Functions.Function1<P2,RESULT> curry(Functions.Function2<P1,P2,RESULT> function,
                                                                  P1 argument)
function - the original function. May not be null.argument - the fixed first argument of function.
null.
public static <P1,P2,P3,RESULT> Functions.Function2<P2,P3,RESULT> curry(Functions.Function3<P1,P2,P3,RESULT> function,
                                                                        P1 argument)
function - the original function. May not be null.argument - the fixed first argument of function.
null.
public static <P1,P2,P3,P4,RESULT> Functions.Function3<P2,P3,P4,RESULT> curry(Functions.Function4<P1,P2,P3,P4,RESULT> function,
                                                                              P1 argument)
function - the original function. May not be null.argument - the fixed first argument of function.
null.
public static <P1,P2,P3,P4,P5,RESULT> Functions.Function4<P2,P3,P4,P5,RESULT> curry(Functions.Function5<P1,P2,P3,P4,P5,RESULT> function,
                                                                                    P1 argument)
function - the original function. May not be null.argument - the fixed first argument of function.
null.
public static <P1,P2,P3,P4,P5,P6,RESULT> Functions.Function5<P2,P3,P4,P5,P6,RESULT> curry(Functions.Function6<P1,P2,P3,P4,P5,P6,RESULT> function,
                                                                                          P1 argument)
function - the original function. May not be null.argument - the fixed first argument of function.
null.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||