Converts a javascalautils.Either to a scala.util.Either.
Converts a javascalautils.Either to a scala.util.Either.
import javascalautils.{ Either => JEither, Left => JLeft, Right => JRight } val eitherRight = asScalaEither(new JRight[String,String]("Left is not Right")) val eitherLeft = asScalaEither(new JLeft[String,String]("Left is not Right"))
The type to be converted
The converted type
1.0
Converts a javascalautils.Left to a scala.util.Left.
Converts a javascalautils.Left to a scala.util.Left.
import javascalautils.{ Either => JEither, Left => JLeft, Right => JRight } val left = asScalaLeft(new JLeft[String,String]("Left is not Right"))
The type to be converted
The converted type
1.0
Converts a javascalautils.Right to a scala.util.Right.
Converts a javascalautils.Right to a scala.util.Right.
import javascalautils.{ Either => JEither, Left => JLeft, Right => JRight } val right = asScalaRight(new JRight[String,String]("Left is not Right"))
The type to be converted
The converted type
1.0
Provides the code for converting a javascalautils.Either/Left/Right -> scala.util.Either/Left/Right.
Refer to the various methods for code examples.