=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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue