title: Java8 stream filter by multiple parameters
body: <p>I have the following class: </p>
  
  <pre><code>public class Transfer {
      private String fromAccountID;
      private String toAccountID;
      private double amount;
  }
  </code></pre>
  
  <p>and a <code>List</code> of <code>Transfer</code>s:</p>
  
  <pre><code>....
  private List&lt;Transfer&gt; transfers = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>I know how to get one transfer history: </p>
  
  <pre><code>transfers.stream().filter(transfer -&gt; 
      transfer.getFromAccountID().equals(id)).findFirst().get();
  </code></pre>
  
  <p>But I want to get by <code>fromAccountID</code> and <code>toAccountID</code>, so the result will be a <code>List</code> of <code>Transfer</code>s. How can I do that with Java8 <code>Stream</code> filter functions?</p>