EitherValues

Companion:
object
class Object
trait Matchable
class Any
object EitherValues.type

Type members

Classlikes

final class Eitherable[E, T](either: Either[E, T], pos: Position)

Container class for matching success type stuff in scala.util.Either containers, similar to org.scalatest.OptionValues.Valuable

Container class for matching success type stuff in scala.util.Either containers, similar to org.scalatest.OptionValues.Valuable

Meant to allow you to make statements like:

 result.value should be > 15 

Where it only matches if result is Valid and is also greater than 15.

Otherwise your test will fail, indicating that it was left instead of right

Value parameters:
either

A scala.util.Either object to try converting to a Eitherable

See also:

org.scalatest.OptionValues.Valuable

Implicits

Implicits

implicit def convertEitherToEitherable[E, T](either: Either[E, T])(implicit pos: Position): Eitherable[E, T]

Implicit conversion that adds a value method to scala.util.Either

Implicit conversion that adds a value method to scala.util.Either

Value parameters:
either

the scala.util.Either on which to add the value method