Files
openide/java/java-tests/testData/inspection/streamApiCallChains/beforeAllMatchNegatedLambdaTwice.java
T

10 lines
275 B
Java

// "Replace !Stream.allMatch(x -> !(...)) with anyMatch(...)" "true"
import java.util.*;
class Test {
public boolean testAnyMatch(List<List<String>> data) {
if(!data.stream().flatMap(Collection::stream).allM<caret>atch(str -> !str.isEmpty()))
return true;
}
}