Class MaybeEmpty

    • Field Detail

      • INSTANCE

        public static final MaybeEmpty INSTANCE
    • Constructor Detail

      • MaybeEmpty

        public MaybeEmpty()
    • Method Detail

      • subscribeActual

        protected void subscribeActual​(MaybeObserver<? super java.lang.Object> observer)
        Description copied from class: Maybe
        Implement this method in subclasses to handle the incoming MaybeObservers.

        There is no need to call any of the plugin hooks on the current Maybe instance or the MaybeObserver; all hooks and basic safeguards have been applied by Maybe.subscribe(MaybeObserver) before this method gets called.

        Specified by:
        subscribeActual in class Maybe<java.lang.Object>
        Parameters:
        observer - the MaybeObserver to handle, not null
      • get

        public java.lang.Object get()
        Description copied from interface: Supplier
        Produces a value or throws an exception.
        Specified by:
        get in interface ScalarSupplier<java.lang.Object>
        Specified by:
        get in interface Supplier<java.lang.Object>
        Returns:
        the value produced