=act,str Port be-scala-2.13-friendly (#22528)
* !str #22527 fix SubSource/SubFlow.zip Pair type * =act don't use conforms, be scala 2.13 friendly * Update SubFlow.scala
This commit is contained in:
parent
5138b8f587
commit
205a538df3
5 changed files with 24 additions and 12 deletions
|
|
@ -19,12 +19,14 @@ private[akka] object ConstantFun {
|
|||
|
||||
def javaIdentityFunction[T]: JFun[T, T] = JavaIdentityFunction.asInstanceOf[JFun[T, T]]
|
||||
|
||||
def scalaIdentityFunction[T]: T ⇒ T = conforms
|
||||
def scalaIdentityFunction[T]: T ⇒ T = conforms.asInstanceOf[Function[T, T]]
|
||||
|
||||
def scalaAnyToNone[A, B]: A ⇒ Option[B] = none
|
||||
def scalaAnyTwoToNone[A, B, C]: (A, B) ⇒ Option[C] = two2none
|
||||
def javaAnyToNone[A, B]: A ⇒ Option[B] = none
|
||||
|
||||
val conforms = (a: Any) ⇒ a
|
||||
|
||||
val zeroLong = (_: Any) ⇒ 0L
|
||||
|
||||
val oneLong = (_: Any) ⇒ 1L
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue