Revision 44857 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/main/java/org/gvsig/expressionevaluator/impl/function/programming/ListFunction.java
ListFunction.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.util.ArrayList; |
4 | 4 |
import java.util.Arrays; |
5 |
import java.util.List; |
|
5 | 6 |
import org.apache.commons.lang3.Range; |
6 | 7 |
import static org.gvsig.expressionevaluator.ExpressionBuilder.FUNCTION_LIST; |
7 | 8 |
import org.gvsig.expressionevaluator.Function; |
... | ... | |
29 | 30 |
|
30 | 31 |
@Override |
31 | 32 |
public Object call(Interpreter interpreter, Object[] args) throws Exception { |
32 |
ArrayList<Object> list = new ArrayList<>();
|
|
33 |
List<Object> list = new ArrayList<>(); |
|
33 | 34 |
list.addAll(Arrays.asList(args)); |
34 | 35 |
return list; |
35 | 36 |
} |
Also available in: Unified diff