=str #25091 javadsl ZipWithIndex to return java.lang.Long
This commit is contained in:
parent
7591571372
commit
db057df5d9
3 changed files with 6 additions and 6 deletions
|
|
@ -2476,8 +2476,8 @@ final class Flow[In, Out, Mat](delegate: scaladsl.Flow[In, Out, Mat]) extends Gr
|
|||
*
|
||||
* '''Cancels when''' downstream cancels
|
||||
*/
|
||||
def zipWithIndex: Flow[In, Pair[Out, Long], Mat] =
|
||||
new Flow(delegate.zipWithIndex.map { case (elem, index) ⇒ Pair(elem, index) })
|
||||
def zipWithIndex: Flow[In, Pair[Out, java.lang.Long], Mat] =
|
||||
new Flow(delegate.zipWithIndex.map { case (elem, index) ⇒ Pair[Out, java.lang.Long](elem, index) })
|
||||
|
||||
/**
|
||||
* If the first element has not passed through this stage before the provided timeout, the stream is failed
|
||||
|
|
|
|||
|
|
@ -1042,8 +1042,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
*
|
||||
* '''Cancels when''' downstream cancels
|
||||
*/
|
||||
def zipWithIndex: javadsl.Source[Pair[Out @uncheckedVariance, Long], Mat] =
|
||||
new Source(delegate.zipWithIndex.map { case (elem, index) ⇒ Pair(elem, index) })
|
||||
def zipWithIndex: javadsl.Source[Pair[Out @uncheckedVariance, java.lang.Long], Mat] =
|
||||
new Source(delegate.zipWithIndex.map { case (elem, index) ⇒ Pair[Out, java.lang.Long](elem, index) })
|
||||
|
||||
/**
|
||||
* Shortcut for running this `Source` with a foreach procedure. The given procedure is invoked
|
||||
|
|
|
|||
|
|
@ -1518,8 +1518,8 @@ class SubFlow[In, Out, Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Flow[I
|
|||
*
|
||||
* '''Cancels when''' downstream cancels
|
||||
*/
|
||||
def zipWithIndex: SubFlow[In, akka.japi.Pair[Out @uncheckedVariance, Long], Mat] =
|
||||
new SubFlow(delegate.zipWithIndex.map { case (elem, index) ⇒ akka.japi.Pair(elem, index) })
|
||||
def zipWithIndex: SubFlow[In, akka.japi.Pair[Out @uncheckedVariance, java.lang.Long], Mat] =
|
||||
new SubFlow(delegate.zipWithIndex.map { case (elem, index) ⇒ akka.japi.Pair[Out, java.lang.Long](elem, index) })
|
||||
|
||||
/**
|
||||
* If the first element has not passed through this stage before the provided timeout, the stream is failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue