mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 07:14:21 +07:00
10 lines
260 B
Java
10 lines
260 B
Java
// "Replace !Stream.anyMatch(...) 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;
|
|
}
|
|
} |