forked from jasder/antlr
add method
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 6859]
This commit is contained in:
parent
e218632b67
commit
4cd721efa9
|
@ -101,4 +101,12 @@ public class Utils {
|
||||||
for (T t : nodes) a.add(t.getText());
|
for (T t : nodes) a.add(t.getText());
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static <T> List<T> list(T... values) {
|
||||||
|
List<T> x = new ArrayList<T>(values.length);
|
||||||
|
for (T v : values) {
|
||||||
|
if ( v!=null ) x.add(v);
|
||||||
|
}
|
||||||
|
return x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue