mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
10 lines
257 B
Java
10 lines
257 B
Java
// "Replace DoubleStream.allMatch(x -> !(...)) with noneMatch(...)" "true"
|
|
|
|
import java.util.stream.*;
|
|
|
|
class Test {
|
|
public boolean testAllMatch(double[] data) {
|
|
if(DoubleStream.of(data).allM<caret>atch(d -> !Double.isNaN(d)))
|
|
return true;
|
|
}
|
|
} |