Reactive Programming with RxJava-Chapter3:Operators and Transformations(2)

More Than One Observable

Treating Several Observables as One Using merge()

merge()
merge()

mergeDelayError()
Reactive Programming with RxJava-Chapter3:Operators and Transformations(2)_第1张图片

Pairwise Composing Using zip() and zipWith()

这里写图片描述

When Streams Are Not Synchronized with One Another:

  • combineLatest()
  • withLatestFrom()
  • amb()
    combineLatest()
    Reactive Programming with RxJava-Chapter3:Operators and Transformations(2)_第2张图片
    amb()

Advanced Operators:collect(),reduce(),scan(),distinct() and group()

Scanning Through the Sequence with Scan and Reduce

scan()

reduce()

Reduction with Mutable Accumulator:collect()

Reactive Programming with RxJava-Chapter3:Operators and Transformations(2)_第3张图片

Asserting Observabele Has Exactly One Item Using single()

Dropping Duplicates Using distinct() and distinctUntilChanged()

distinct()

distinctUntilChanged()

最后,安利一款自己写的基于MVP的Android开发框架

https://github.com/sxenon/Pure
欢迎大家拍砖,如果觉得好,麻烦多多star

你可能感兴趣的:(RxJava,1.x,学习笔记)