Eitherable

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

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

class Object
trait Matchable
class Any

Value members

Concrete methods

def leftValue: E

Use .leftValue on an Either to extract the left side. Like .value, but for the left. If the value is a right, the test will fail.

Use .leftValue on an Either to extract the left side. Like .value, but for the left. If the value is a right, the test will fail.

def value: T

Extract the Right from the Either. If the value is not a right the test will fail.

Extract the Right from the Either. If the value is not a right the test will fail.