mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 14:37:45 +07:00
10 lines
267 B
Java
10 lines
267 B
Java
// "Replace Stream.allMatch(x -> !(...)) with noneMatch(...)" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
public boolean testAnyMatch(List<List<String>> data) {
|
|
if(data.stream().flatMap(Collection::stream).noneMatch(str -> str.isEmpty()))
|
|
return true;
|
|
}
|
|
} |