Class SingleSubjectAdapter<T>

  • All Implemented Interfaces:
    RxSubjectAdapter<T>

    public final class SingleSubjectAdapter<T>
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      SingleSubjectAdapter​(io.reactivex.rxjava3.subjects.SingleSubject<? super T> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onComplete()  
      void onError​(java.lang.Throwable error)  
      void onNext​(T next)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleSubjectAdapter

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