Class SingleSubjectAdapter<T>

java.lang.Object
org.saynotobugs.confidence.rxjava3.adapters.SingleSubjectAdapter<T>
All Implemented Interfaces:
RxSubjectAdapter<T>

public final class SingleSubjectAdapter<T> extends Object implements RxSubjectAdapter<T>
An RxSubjectAdapter to a SingleSubject. Calls to onNext(Object) are delegated to SingleSubject.onSuccess(Object), which automatically "completes" the subject. On the other hand, SingleSubjects can not complete without a value, so calls to onComplete() throw an UnsupportedOperationException.
  • Constructor Details

    • SingleSubjectAdapter

      public SingleSubjectAdapter(io.reactivex.rxjava3.subjects.SingleSubject<? super T> delegate)
  • Method Details