I have an observable that emits a single object which has two fields, something like this:
public class Details {
private Link link;
private List<Comment> comments;
}
Observable<Details> detailsObservable = ...;
Now, I was wondering: can this observable be somehow split into two observables? What I'd like to do is to have a subscriber listen for the link and another one to listen for Comments.
You can use map method to achieve that. Example code shared below, let me know if it helps.