class RightValuable[L, R] extends AnyRef
Wrapper class that adds a value
method to RightProjection
, allowing
you to make statements like:
either.right.value should be > 9
- Source
- EitherValues.scala
- Alphabetic
- By Inheritance
- RightValuable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RightValuable(rightProj: RightProjection[L, R], pos: Position)
- rightProj
A
RightProjection
to convert toRightValuable
, which provides thevalue
method.
Value Members
-
def
value: R
Returns the
Right
value contained in the wrappedRightProjection
, if defined as aRight
, else throwsTestFailedException
with a detail message indicating theEither
was defined as aRight
, not aLeft
.Returns the
Right
value contained in the wrappedRightProjection
, if defined as aRight
, else throwsTestFailedException
with a detail message indicating theEither
was defined as aRight
, not aLeft
.