java.lang.Object
io.reactivex.rxjava3.core.Observable<Integer>
io.reactivex.rxjava3.internal.operators.observable.ObservableRange
All Implemented Interfaces:
ObservableSource<Integer>

public final class ObservableRange extends Observable<Integer>
Emits a range of integer values from start to end.
  • Field Details

    • start

      private final int start
    • end

      private final long end
  • Constructor Details

    • ObservableRange

      public ObservableRange(int start, int count)
  • Method Details

    • subscribeActual

      protected void subscribeActual(Observer<? super Integer> o)
      Description copied from class: Observable
      Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.

      There is no need to call any of the plugin hooks on the current Observable instance or the Observer; all hooks and basic safeguards have been applied by Observable.subscribe(Observer) before this method gets called.

      Specified by:
      subscribeActual in class Observable<Integer>
      Parameters:
      o - the incoming Observer, never null