Class Maybe.MaybeConsumer<T>

  • Type Parameters:
    T - The type contained within the Maybe, maybe.
    All Implemented Interfaces:
    Consumer<Maybe<T>>
    Enclosing class:
    Maybe<T>

    public static final class Maybe.MaybeConsumer<T>
    extends Object
    implements Consumer<Maybe<T>>
    A consumer extension that handles the Maybe concept.

    If the Maybe has a value, it will be passed to the wrapped Consumer, and if it does not, no action will be taken.