beamly.core.lang.extensions

RightBiasedEither

final class RightBiasedEither[+L, +R] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RightBiasedEither
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RightBiasedEither(underlying: Either[L, R])

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def filter[LL](p: (R) ⇒ Boolean)(implicit ev: <:<[L, Option[LL]]): Either[Option[LL], R]

    Filters successful values, pushing values as Left[None] which don't match the filter.

    Filters successful values, pushing values as Left[None] which don't match the filter.

    LL

    New failure type

    p

    Predicate for filtering the values

    ev

    Conversion of failed values to Option

    returns

    New Either with successful matching filter included

    Annotations
    @inline()
  6. def flatMap[LL >: L, RR](f: (R) ⇒ Either[LL, RR]): Either[LL, RR]

    Maps successful value to new Either.

    Maps successful value to new Either.

    LL

    New failed type

    RR

    New successful type

    f

    Function which maps value to Either

    returns

    New Either

    Annotations
    @inline()
  7. def flatRecover[RR >: R, LL >: L](pf: PartialFunction[L, Either[LL, RR]]): Either[LL, RR]

    Converts some failed values.

    Converts some failed values.

    RR

    Type of new successful value

    pf

    Partial function which converts some values to new Either

    returns

    New Either

    Annotations
    @inline()
  8. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  9. def getOrElse[RR >: R](other: RR): RR

    Gets the successful value or another value in case of value.

    Gets the successful value or another value in case of value.

    RR

    Returned successful value

    other

    Fallback value

    returns

    Successful value

    Annotations
    @inline()
  10. def getOrRecover[RR >: R](f: (L) ⇒ RR): RR

    Gets the successful value or transforms failed values into successes.

    Gets the successful value or transforms failed values into successes.

    RR

    Returned successful value

    f

    Function which converts failures to successes

    returns

    Successful value

    Annotations
    @inline()
  11. def isFailure: Boolean

    Failed left-hand side.

    Failed left-hand side.

    returns

    true if left

    Annotations
    @inline()
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. def isSuccess: Boolean

    Successful right-hand side.

    Successful right-hand side.

    returns

    true if right

    Annotations
    @inline()
  14. def map[RR](f: (R) ⇒ RR): Either[L, RR]

    Maps successful right value.

    Maps successful right value.

    RR

    Returned right value

    f

    Mapping function

    returns

    Either with new right value

    Annotations
    @inline()
  15. def recover[RR >: R](pf: PartialFunction[L, RR]): Either[L, RR]

    Converts some failed values.

    Converts some failed values.

    RR

    Type of new successful value

    pf

    Partial function which converts some values to new successful

    returns

    New Either

    Annotations
    @inline()
  16. def recoverWith[RR >: R, LL >: L](pf: PartialFunction[L, Either[LL, RR]]): Either[LL, RR]

    Converts some failed values.

    Converts some failed values.

    RR

    Type of new successful value

    pf

    Partial function which converts some values to new Either

    returns

    New Either

    Annotations
    @inline()
  17. def toString(): String

    Definition Classes
    Any
  18. def toTry(implicit ev: <:<[L, Throwable]): Product with Serializable with Try[R]

    Converts scala.util.Either to scala.util.Try

    ev

    Way of converting failure value to scala.Throwable

    returns

    Try based on success or failure of this scala.util.Either

    Annotations
    @inline()
  19. val underlying: Either[L, R]

  20. def withFilter[LL](p: (R) ⇒ Boolean)(implicit ev: <:<[L, Option[LL]]): Either[Option[LL], R]

    Filters successful values, pushing values as Left[None] which don't match the filter.

    Filters successful values, pushing values as Left[None] which don't match the filter.

    LL

    New failure type

    p

    Predicate for filtering the values

    ev

    Conversion of failed values to Option

    returns

    New Either with successful matching filter included

    Annotations
    @inline()

Inherited from AnyVal

Inherited from Any

Ungrouped