title: Java 8 filter a stream to replace SQL IN (...) clause
body: <p>Is there any way to achieve the same result with a collection like with SQL IN clause ? For example, there a list of objects and I have to choose those with ids in (2, 17, 31, ...) what is equal to SQL</p>
  
  <pre><code>SELECT *
  FROM table_name
  WHERE column_name IN (value1, value2, ...);
  </code></pre>