java streams - collect elements from map of collections using condition on the values
<p>I have a Map. Let's say</p>

<p>Map> 
I want to collect all the long values (keys)
when at least one myObj answers</p>

<pre><code>myObj.isEnabled=false
</code></pre>

<p>using java stream.</p>

<p>I tried</p>

<pre><code>map.entrySet().stream().filter(entry-&gt;entry.getValue().stream().filter(x-&gt;!x.isEnabled())).findAny().collect()
</code></pre>