Enum EmptyComponent

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INSTANCE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EmptyComponent()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> Observer<T> asObserver()  
      static <T> org.reactivestreams.Subscriber<T> asSubscriber()  
      void cancel()  
      void dispose()
      Dispose the resource, the operation should be idempotent.
      boolean isDisposed()
      Returns true if this resource has been disposed.
      void onComplete()
      Notifies the Observer that the Observable has finished sending push-based notifications.
      void onError​(java.lang.Throwable t)
      Notifies the Observer that the Observable has experienced an error condition.
      void onNext​(java.lang.Object t)
      Provides the Observer with a new item to observe.
      void onSubscribe​(Disposable d)
      Provides the Observer with the means of cancelling (disposing) the connection (channel) with the Observable in both synchronous (from within Observer.onNext(Object)) and asynchronous manner.
      void onSubscribe​(org.reactivestreams.Subscription s)
      Implementors of this method should make sure everything that needs to be visible in Subscriber.onNext(Object) is established before calling Subscription.request(long).
      void onSuccess​(java.lang.Object value)
      Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.
      void request​(long n)  
      static EmptyComponent valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EmptyComponent[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EmptyComponent

        private EmptyComponent()
    • Method Detail

      • values

        public static EmptyComponent[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EmptyComponent c : EmptyComponent.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EmptyComponent valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • asSubscriber

        public static <T> org.reactivestreams.Subscriber<T> asSubscriber()
      • asObserver

        public static <T> Observer<T> asObserver()
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Dispose the resource, the operation should be idempotent.
        Specified by:
        dispose in interface Disposable
      • isDisposed

        public boolean isDisposed()
        Description copied from interface: Disposable
        Returns true if this resource has been disposed.
        Specified by:
        isDisposed in interface Disposable
        Returns:
        true if this resource has been disposed
      • request

        public void request​(long n)
        Specified by:
        request in interface org.reactivestreams.Subscription
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.reactivestreams.Subscription
      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription s)
        Description copied from interface: FlowableSubscriber
        Implementors of this method should make sure everything that needs to be visible in Subscriber.onNext(Object) is established before calling Subscription.request(long). In practice this means no initialization should happen after the request() call and additional behavior is thread safe in respect to onNext.
        Specified by:
        onSubscribe in interface FlowableSubscriber<java.lang.Object>
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<java.lang.Object>
      • onNext

        public void onNext​(java.lang.Object t)
        Description copied from interface: Observer
        Provides the Observer with a new item to observe.

        The Observable may call this method 0 or more times.

        The Observable will not call this method again after it calls either Observer.onComplete() or Observer.onError(java.lang.Throwable).

        Specified by:
        onNext in interface Observer<java.lang.Object>
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<java.lang.Object>
        Parameters:
        t - the item emitted by the Observable