假设我有两个可观察的流。
我应该如何按匹配属性联接这些内容?类似下面的伪代码:
Observable<Book> books;
Observable<Movie> movies;
我应该如何按匹配属性联接这些内容?类似下面的伪代码:
Observable<BookMoviePair> pairs = books.join(movies)
.where((book, movie) -> book.getId() == movie.getId()))
.return((book, movie) -> new BookMoviePair(book, movie));