java.lang.Object
mutiny.zero.operators.Select<T>
- Type Parameters:
T- the elements type
- All Implemented Interfaces:
Flow.Publisher<T>
A
Flow.Publisher that selects elements matching a Predicate.-
Constructor Summary
ConstructorsConstructorDescriptionSelect(Flow.Publisher<T> upstream, Predicate<T> predicate) Build a new selection publisher. -
Method Summary
-
Constructor Details
-
Select
Build a new selection publisher.- Parameters:
upstream- the upstream publisherpredicate- the predicate to select the elements forwarded to subscribers, must not throw exceptions
-
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<T>
-