Package-level declarations
Types
Callbacks for Maybe source See Maybe, SuccessCallback and CompletableCallbacks for more information.
Represents an emitter for Maybe source. See Emitter and MaybeCallbacks for more information.
Represents an Observer of Maybe source. See Observer and MaybeCallbacks for more information.
Functions
Returns a Completable which signals onComplete when this Maybe signals either onSuccess or onComplete.
Converts this Maybe into an Observable, which signals a success value via onNext followed by onComplete.
Converts this Maybe into a Single, which signals either a success value (if this Maybe succeeds) or the defaultValue (if this Maybe completes).
Converts this Maybe into a Single, which signals either a success value (if this Maybe succeeds) or a value returned by defaultValueSupplier (if this Maybe completes).
Blocks current thread until the current Maybe succeeds with a value (which is returned), completes (null is returned) or fails with an exception (which is propagated).
Concatenates multiple Maybe sources one by one into an Observable.
Concatenates multiple Maybe sources one by one into an Observable.
Same as Maybe.asSingle
Calls the shared action when the Disposable sent to the observer via onSubscribe is disposed. The action is called after the upstream is disposed.
Calls the shared action for each new observer with the Disposable sent to the downstream. The action is called for each new observer after its onSubscribe callback is called.
Calls the shared action when the Disposable sent to the observer via onSubscribe is disposed. The action is called before the upstream is disposed.
Calls the shared action for each new observer with the Disposable sent to the downstream. The action is called for each new observer before its onSubscribe callback is called.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Maybe. Emits the value from the inner Maybe.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Maybe. When the inner Maybe emits, calls the resultSelector function with the original and the inner values and emits the result.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Completable.
Calls the transformer with the value emitted by the Maybe and emits the returned Iterable values one by one as Observable.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Observable. Emits values from the inner Observable.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Observable. For each value emitted by the inner Observable, calls the resultSelector function with the original and the inner values and emits the result.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Single. Emits the value from the inner Single or completes.
Calls the mapper with the value emitted by the Maybe and subscribes to the returned inner Single. When the inner Single emits, calls the resultSelector function with the original and the inner values and emits the result.
This is just a shortcut for Maybe.flatMapObservable.
When the Maybe emits an Iterable of values, iterates over the Iterable and emits all values one by one as an Observable.
Same as mapIterable but saves resulting values into a MutableCollection returned by collectionSupplier.
Creates a Maybe with manual signalling via MaybeEmitter.
Returns a Maybe that signals onComplete.
Returns a Maybe that never signals.
⚠️ Advanced use only: creates an instance of Maybe without any safeguards by calling onSubscribe with a MaybeObserver.
Returns a Maybe that for each subscription acquires a new resource via resourceSupplier, then calls sourceSupplier and subscribes to the returned upstream Maybe and disposes the resource via sourceSupplier when the upstream Maybe is finished (either terminated or disposed).
Merges multiple Maybes into one Observable, running all Singles simultaneously.
When the Maybe signals onError, emits a value returned by valueSupplier.
Returns a Maybe that automatically resubscribes to this Maybe if it signals onError and the Observable returned by the handler function emits a value for that specific Throwable.
A convenience extensions function for maybeOfNotNull.
A convenience extensions function for maybeOfError.
Subscribes to all sourcess, accumulates all their values and emits a value returned by the mapper function.