title: Filter list of objects in RxJava
body: <p>I am trying to filter the list on the basis of it's property. For example, Sensors class has a property <code>isActive</code> and I want to get all the objects with <code>isActive</code> as <code>true</code> but I am unable to do it. I tried different ways but I didn't find the solution. Can someone help me to do it?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>mCompositeDisposable.add(
      fcService.getStationList()
      .subscribeOn(Schedulers.io())
      .flatMap(stations -&gt; {
          return fcService.getSensorList(stations.get(0).getName().getOriginal());}
      ).subscribe(this::handleSensors, this::handleError));
  </code></pre>