RxJava: How to convert List of objects to List of another objects
<p>I have the List of SourceObjects and I need to convert it to the List of ResultObjects.</p>

<p>I can fetch one object to another using method of ResultObject:</p>

<pre><code>convertFromSource(srcObj);
</code></pre>

<p>of course I can do it like this:</p>

<pre><code>public void onNext(List&lt;SourceObject&gt; srcObjects) {
   List&lt;ResultsObject&gt; resObjects = new ArrayList&lt;&gt;();
   for (SourceObject srcObj : srcObjects) {
       resObjects.add(new ResultsObject().convertFromSource(srcObj));
   }
}
</code></pre>

<p>but I will be very appreciate to someone who can show how to do the same using <strong>rxJava</strong>.</p>