So far we have seen how to get Observable with just(), create(), and interval(). However, there are other sources to get the Observable. You can get full details about each source from at:https://github.com/ReactiveX/RxJava/wiki/Creating-Observables:
- range: If you want to emit a consecutive range of integers, you can use the Observable.range(int from, int to) call. As its name suggests, it will start emitting a number from the start value in increments until the end count is reached.
- empty: In a rare situation, you need to create Observable that emits nothing and calls onComplete(). In this case, you can use this source type with the Observable.empty() call.
- never: It is equivalent to empty with the difference ...