title: Java8 - Search values in a Map
body: <p>I'm learning Java8 and looking to see how you could convert the following into Java8 streaming API where it 'stops' after finding the first 'hit' (like in the code below)</p>
  
  <pre><code>public int findId(String searchTerm) {
  
      for (Integer id : map.keySet()) {
          if (map.get(id).searchTerm.equalsIgnoreCase(searchTerm))
              return id;
      }
      return -1;
  }
  </code></pre>