- java.lang.Object
-
- io.smallrye.mutiny.math.IndexOperator<T>
-
- Type Parameters:
T- type of the incoming items.
public class IndexOperator<T> extends java.lang.Object implements java.util.function.Function<Multi<T>,Multi<Tuple2<java.lang.Long,T>>>
Index operator emitting aTuple2<Long, T>, with the index (0-based) of the element and the element from upstream. If the upstream emits a failure, then, the failure is propagated.
-
-
Constructor Summary
Constructors Constructor Description IndexOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multi<Tuple2<java.lang.Long,T>>apply(Multi<T> multi)
-