title: Guava: Why is there no Lists.filter() function?
body: <p>Is there a reason there's</p>
  
  <pre><code>Lists.transform()
  </code></pre>
  
  <p>but no</p>
  
  <pre><code>Lists.filter()
  </code></pre>
  
  <p>?</p>
  
  <p>How do I filter a list correctly? I could use</p>
  
  <pre><code>new ArrayList(Collection2.filter())
  </code></pre>
  
  <p>of course, but this way it's not guaranteed that my ordering stays the same, if I understand correctly.</p>