mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
22 lines
544 B
Java
22 lines
544 B
Java
public class Test {
|
|
|
|
public void validate(ArrayList<Supplier<Integer>> rules){
|
|
ArrayList<String> strings = null;
|
|
ArrayList<Integer> integers = null;
|
|
|
|
for (Supplier<Integer> rule : rules) {
|
|
<selection>int t = rule.get();
|
|
if (t == 1000) {
|
|
if (strings == null) {
|
|
strings = new ArrayList<>();
|
|
}
|
|
strings.add("q");
|
|
} else if (t == 2 || t == 3) {
|
|
if (integers == null) {
|
|
integers = new ArrayList<>();
|
|
}
|
|
integers.add(1);
|
|
}</selection>
|
|
}
|
|
}
|
|
} |