implicit final class RightBiasedEither[A, B] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RightBiasedEither
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
get: B
Get the value, fail with an assertion if this is an error.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
orThrow: B
Get the right value of an
Either
by throwing a potential error message.Get the right value of an
Either
by throwing a potential error message. Can simplify the implementation of methods that act on multipleEither
instances. Instead of flat-mapping, the first error can be collected astryEither { eitherOne.orThrow .... eitherTwo.orThrow ... eitherThree.orThrow }
-
def
toString(): String
- Definition Classes
- Any
- val v: Either[A, B]
- def withFilter(f: (B) ⇒ Boolean)(implicit empty: A): Either[A, B]