Package io.smallrye.mutiny.groups
Class MultiConvert<T>
- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiConvert<T>
-
- Type Parameters:
T
- the type of item emitted by the upstream.
public class MultiConvert<T> extends java.lang.Object
Converts the upstream into another reactive type.
-
-
Constructor Summary
Constructors Constructor Description MultiConvert(Multi<T> upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<T>
toPublisher()
Converts theMulti
into aPublisher
.<R> R
with(java.util.function.Function<Multi<T>,R> converter)
Transforms thisMulti
into a type using the provided converter.
-
-
-
Method Detail
-
with
public <R> R with(java.util.function.Function<Multi<T>,R> converter)
Transforms thisMulti
into a type using the provided converter.- Type Parameters:
R
- the type produced by the converter- Parameters:
converter
- the converter function- Returns:
- an instance of R
- Throws:
java.lang.RuntimeException
- if the conversion fails.
-
-