Class ObservableCollectWithCollectorSingle<T,A,R>
- java.lang.Object
-
- io.reactivex.rxjava3.core.Single<R>
-
- io.reactivex.rxjava3.internal.jdk8.ObservableCollectWithCollectorSingle<T,A,R>
-
- Type Parameters:
T- the upstream value typeA- the intermediate accumulator typeR- the result type
- All Implemented Interfaces:
SingleSource<R>,FuseToObservable<R>
public final class ObservableCollectWithCollectorSingle<T,A,R> extends Single<R> implements FuseToObservable<R>
Collect items into a container defined by a StreamCollectorcallback set.- Since:
- 3.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classObservableCollectWithCollectorSingle.CollectorSingleObserver<T,A,R>
-
Constructor Summary
Constructors Constructor Description ObservableCollectWithCollectorSingle(Observable<T> source, java.util.stream.Collector<? super T,A,R> collector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Observable<R>fuseToObservable()Returns a (direct) Observable for the operator.protected voidsubscribeActual(@NonNull SingleObserver<? super R> observer)Implement this method in subclasses to handle the incomingSingleObservers.-
Methods inherited from class io.reactivex.rxjava3.core.Single
amb, ambArray, ambWith, blockingGet, blockingSubscribe, blockingSubscribe, blockingSubscribe, blockingSubscribe, cache, cast, compose, concat, concat, concat, concat, concat, concat, concat, concatArray, concatArrayDelayError, concatArrayEager, concatArrayEagerDelayError, concatDelayError, concatDelayError, concatDelayError, concatEager, concatEager, concatEager, concatEager, concatEagerDelayError, concatEagerDelayError, concatEagerDelayError, concatEagerDelayError, concatMap, concatMapCompletable, concatMapMaybe, concatWith, contains, contains, create, defer, delay, delay, delay, delay, delaySubscription, delaySubscription, delaySubscription, delaySubscription, delaySubscription, delaySubscription, dematerialize, doAfterSuccess, doAfterTerminate, doFinally, doOnDispose, doOnError, doOnEvent, doOnLifecycle, doOnSubscribe, doOnSuccess, doOnTerminate, error, error, filter, flatMap, flatMap, flatMap, flatMapCompletable, flatMapMaybe, flatMapObservable, flatMapPublisher, flattenAsFlowable, flattenAsObservable, flattenStreamAsFlowable, flattenStreamAsObservable, fromCallable, fromCompletionStage, fromFuture, fromFuture, fromMaybe, fromMaybe, fromObservable, fromPublisher, fromSupplier, hide, ignoreElement, just, lift, map, mapOptional, materialize, merge, merge, merge, merge, merge, merge, mergeArray, mergeArrayDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeWith, never, observeOn, ofType, onErrorComplete, onErrorComplete, onErrorResumeNext, onErrorResumeWith, onErrorReturn, onErrorReturnItem, onTerminateDetach, repeat, repeat, repeatUntil, repeatWhen, retry, retry, retry, retry, retry, retryUntil, retryWhen, safeSubscribe, sequenceEqual, startWith, startWith, startWith, startWith, startWith, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscribeWith, switchOnNext, switchOnNextDelayError, takeUntil, takeUntil, takeUntil, test, test, timeInterval, timeInterval, timeInterval, timeInterval, timeout, timeout, timeout, timeout, timer, timer, timestamp, timestamp, timestamp, timestamp, to, toCompletionStage, toFlowable, toFuture, toMaybe, toObservable, unsafeCreate, unsubscribeOn, using, using, wrap, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipArray, zipWith
-
-
-
-
Field Detail
-
source
final Observable<T> source
-
-
Constructor Detail
-
ObservableCollectWithCollectorSingle
public ObservableCollectWithCollectorSingle(Observable<T> source, java.util.stream.Collector<? super T,A,R> collector)
-
-
Method Detail
-
fuseToObservable
public Observable<R> fuseToObservable()
Description copied from interface:FuseToObservableReturns a (direct) Observable for the operator.The implementation should handle the necessary RxJavaPlugins wrapping.
- Specified by:
fuseToObservablein interfaceFuseToObservable<T>- Returns:
- the Observable instance
-
subscribeActual
protected void subscribeActual(@NonNull @NonNull SingleObserver<? super R> observer)
Description copied from class:SingleImplement this method in subclasses to handle the incomingSingleObservers.There is no need to call any of the plugin hooks on the current
Singleinstance or theSingleObserver; all hooks and basic safeguards have been applied bySingle.subscribe(SingleObserver)before this method gets called.- Specified by:
subscribeActualin classSingle<R>- Parameters:
observer- theSingleObserverto handle, notnull
-
-