Class MaybeMaterialize<T>

  • Type Parameters:
    T - the element type of the source
    All Implemented Interfaces:
    SingleSource<Notification<T>>

    public final class MaybeMaterialize<T>
    extends Single<Notification<T>>
    Turn the signal types of a Maybe source into a single Notification of equal kind.

    History: 2.2.4 - experimental

    Since:
    3.0.0
    • Field Detail

      • source

        final Maybe<T> source
    • Constructor Detail

      • MaybeMaterialize

        public MaybeMaterialize​(Maybe<T> source)
    • Method Detail

      • subscribeActual

        protected void subscribeActual​(SingleObserver<? super Notification<T>> observer)
        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<Notification<T>>
        Parameters:
        observer - the SingleObserver to handle, not null