title: C# (where) to JAVA
body: <p>I am porting some C# code over to Java. 
  How can I filter element in if/else blok ? 
  How to rewrite this in JAVA ? </p>
  
  <pre><code>if(items.Where( x =&gt; x.rarity == rarity &amp;&amp; x.getPriceByQuality(quality) != 0 &amp;&amp; x.name.Contains("AA") == isFull).Count() != 0)
  </code></pre>