Class ObservableElementAtSingle<T>

    • Field Detail

      • index

        final long index
      • defaultValue

        final T defaultValue
    • Constructor Detail

      • ObservableElementAtSingle

        public ObservableElementAtSingle​(ObservableSource<T> source,
                                         long index,
                                         T defaultValue)
    • Method Detail

      • subscribeActual

        public void subscribeActual​(SingleObserver<? super T> t)
        Description copied from class: Single
        Implement this method in subclasses to handle the incoming SingleObservers.

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

        Specified by:
        subscribeActual in class Single<T>
        Parameters:
        t - the SingleObserver to handle, not null
      • fuseToObservable

        public Observable<T> fuseToObservable()
        Description copied from interface: FuseToObservable
        Returns a (direct) Observable for the operator.

        The implementation should handle the necessary RxJavaPlugins wrapping.

        Specified by:
        fuseToObservable in interface FuseToObservable<T>
        Returns:
        the Observable instance