Filter should be translated into filter, which is a commonly used filter operator in RxJava. Its purpose is to filter according to specified conditions and pass the results that meet the conditions to subscribers. Its function alone is not surprising, but when combined with RxJava, it is a necessary and commonly used function. Isn’t what you are talking about just if? Fundamentally, it does use the judgment logic represented by if, but you cannot say that the house is made of bricks, just because the house is bricks.
Filter should be translated into filter, which is a commonly used filter operator in RxJava. Its purpose is to filter according to specified conditions and pass the results that meet the conditions to subscribers. Its function alone is not surprising, but when combined with RxJava, it is a necessary and commonly used function.
Isn’t what you are talking about just if? Fundamentally, it does use the judgment logic represented by if, but you cannot say that the house is made of bricks, just because the house is bricks.
filter
Generally translated as "filter",http://baike.baidu.com/item/%...