Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
streamApiCallChains
/
afterAllMatchNegatedPrimitive.java
blob: 9e50a197bf65b1129516c5679197876a5050b77f [
file
]
// "Replace DoubleStream.allMatch(x -> !(...)) with noneMatch(...)" "true"
import
java
.
util
.
stream
.*;
class
Test
{
public
boolean
testAllMatch
(
double
[]
data
)
{
if
(
DoubleStream
.
of
(
data
).
noneMatch
(
d
->
Double
.
isNaN
(
d
)))
return
true
;
}
}