onCompleted -> onComplete - without the trailing d
Func1 -> Function
Func2 -> BiFunction
CompositeSubscription -> CompositeDisposable
limit operator has been removed - Use take in RxJava2
and much more.
一些操作符的解释
Map -> transform the items emitted by an Observable by applying a function to each item
Zip -> combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this function
Filter -> emit only those items from an Observable that pass a predicate test
FlatMap -> transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable
Take -> emit only the first n items emitted by an Observable
Reduce -> apply a function to each item emitted by an Observable, sequentially, and emit the final value
Skip -> suppress the first n items emitted by an Observable
Buffer -> periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time
Concat -> emit the emissions from two or more Observables without interleaving them
Replay -> ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting items
Merge -> combine multiple Observables into one by merging their emissions
Copyright 2017 nanchen(刘世麟)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
请发表评论