Interface Stage.DropWhile

  • All Superinterfaces:
    Enclosing interface:

    public static interface Stage.DropWhile
    extends Stage
    A drop while stage.

    The given predicate must be invoked on each element consumed, until it returns true. Each element that it returns true for must be dropped, and once it returns false, that element that it returned false for, and all subsequent elements, must be emitted. The predicate must not be invoked after it returns false the first time.

    If upstream terminates for any reason before the predicate returns false, downstream must also be terminated.

    Any RuntimeException thrown by the predicate must be propagated downstream as an error, and upstream must be cancelled. Any subsequent elements received from upstream before the cancellation signal is handled must be dropped.

    • Method Detail

      • getPredicate

        java.util.function.Predicate<?> getPredicate()
        The predicate.
        The predicate.