title: Should map operation be invoked in this Java Stream usage?
body: <p>Assuming that this usage is logically (i.e. it calculates the desired boolean value) correct:</p>
  
  <pre><code>boolean matches = someObjectList
              .stream()
              .anyMatch(myObjType -&gt; !myObjType.getSomeStatusString().equals("someStatus"));
  </code></pre>
  
  <p>how would that compare to:</p>
  
  <pre><code>boolean matches = someObjectList
              .stream()
              .map(myObjType -&gt; myObjType.getSomeStatusString())
              .anyMatch(status -&gt; !status.equals("someStatus"));
  </code></pre>
  
  <p>Is one form objectively better than the other?  Is there a significant difference in the bytecode?  Is one an anti-pattern?  Is there some Java Optimizer that makes one better than the other?   I am not interested in opinion based differences such as the first is more readable, as that may differ from reader to reader....</p>