title: Java - Returning List based on condition
body: <p>I have the following method <code>getTeams()</code> which returns list of teams <code>List&lt;Team&gt;</code> of a particular account (i.e., <code>this.teams</code>).<br>
  I want to return the teams which are active only (<code>find.where().eq("active",true)</code>)</p>
  
  <p>I need the list of teams of the account which satisfy the condition (active teams), but I am unable to do it. I mean I was able to return either <code>this.teams</code> or teams which are active. So how will I be able to combine these? Any help is much appreciated! Thanks.</p>
  
  <pre><code>public List&lt;Team&gt; getTeams() {
      return Team.find.where().eq("active", true).findList();
      //return this.teams;
  }
  </code></pre>