Module mutiny.zero

Class Select<T>

java.lang.Object
mutiny.zero.operators.Select<T>
Type Parameters:
T - the elements type
All Implemented Interfaces:
Flow.Publisher<T>

public class Select<T> extends Object implements Flow.Publisher<T>
A Flow.Publisher that selects elements matching a Predicate.
  • Constructor Details

    • Select

      public Select(Flow.Publisher<T> upstream, Predicate<T> predicate)
      Build a new selection publisher.
      Parameters:
      upstream - the upstream publisher
      predicate - the predicate to select the elements forwarded to subscribers, must not throw exceptions
  • Method Details