Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
streamApiCallChains
/
beforeAllMatchNegatedPrimitive.java
blob: df7b88d3ec00c5628ead7065e3a3b20e7e5558a8 [
file
]
// "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
;
}
}