Feature Overview
This feature converts a static method to a Func.
For more details on Funcs, please check R.apex.
This feature converts a static method to a Func.
For more details on Funcs, please check R.apex.
You need to include R.apex if you want to enable this feature.
public class FunctionDemo {
/**
* A sample add function
* */
@func
public static Integer add(Integer a, Integer b) {
return a + b;
}
public static void test() {
System.debug(FuctionDemo.F.add.run(1, 2));
}
}
public class FunctionDemo {
/**
* A sample add function
* */
public static Integer add(Integer a, Integer b) {
return (Integer)F.add.runN(new List