Class

zio.prelude.These

Left

Related Doc: package These

Permalink

final case class Left[+A](value: A) extends These[A, Nothing] with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Left
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. These
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Left(value: A)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def &>[A1 >: A, C](that: These[A1, C])(implicit arg0: Commutative[A1]): These[A1, C]

    Permalink

    A symbolic alias for zipParRight.

    A symbolic alias for zipParRight.

    Definition Classes
    These
  4. final def *>[A1 >: A, C](that: These[A1, C])(implicit arg0: Associative[A1]): These[A1, C]

    Permalink

    A symbolic alias for zipRight.

    A symbolic alias for zipRight.

    Definition Classes
    These
  5. final def <&[A1 >: A, C](that: These[A1, C])(implicit arg0: Commutative[A1]): These[A1, Nothing]

    Permalink

    A symbolic alias for zipParLeft.

    A symbolic alias for zipParLeft.

    Definition Classes
    These
  6. final def <&>[A1 >: A, C](that: These[A1, C])(implicit arg0: Commutative[A1]): These[A1, (Nothing, C)]

    Permalink

    A symbolic alias for zipPar.

    A symbolic alias for zipPar.

    Definition Classes
    These
  7. final def <*[A1 >: A, C](that: These[A1, C])(implicit arg0: Associative[A1]): These[A1, Nothing]

    Permalink

    A symbolic alias for zipLeft.

    A symbolic alias for zipLeft.

    Definition Classes
    These
  8. final def <*>[A1 >: A, C](that: These[A1, C])(implicit arg0: Associative[A1]): These[A1, (Nothing, C)]

    Permalink

    A symbolic alias for zip.

    A symbolic alias for zip.

    Definition Classes
    These
  9. final def <+>[A1 >: A, C](that: ⇒ These[A1, C])(implicit arg0: Associative[A1]): These[A1, Either[Nothing, C]]

    Permalink

    A symbolic alias for orElseEither.

    A symbolic alias for orElseEither.

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def >>=[A1 >: A, C](f: (Nothing) ⇒ These[A1, C])(implicit arg0: Associative[A1]): These[A1, C]

    Permalink

    A symbolic alias for flatMap.

    A symbolic alias for flatMap.

    Definition Classes
    These
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. final def bimap[A2, C](f: (A) ⇒ A2, g: (Nothing) ⇒ C): These[A2, C]

    Permalink

    Transforms both the A value and the B value with the specified functions f and g.

    Transforms both the A value and the B value with the specified functions f and g.

    Definition Classes
    These
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def flatMap[A1 >: A, C](f: (Nothing) ⇒ These[A1, C])(implicit arg0: Associative[A1]): These[A1, C]

    Permalink

    Returns a new computation based on the successful result of this computation.

    Returns a new computation based on the successful result of this computation. If this computation contains a success the new computation will be performed, even if this computation also contains errors. Any errors produced by the two computations will be combined using the Associative instance for A. If this computation does not contain a success then the original failure will be returned unchanged.

    Definition Classes
    These
  18. final def flatten[A1 >: A, C](implicit ev: <:<[Nothing, These[A1, C]], ev2: Associative[A1]): These[A1, C]

    Permalink

    Flattens a nested These computation to a single level.

    Flattens a nested These computation to a single level.

    Definition Classes
    These
  19. final def flip: These[Nothing, A]

    Permalink

    Flips the left and right values.

    Flips the left and right values.

    Definition Classes
    These
  20. final def fold[C](left: (A) ⇒ C, right: (Nothing) ⇒ C)(both: (A, Nothing) ⇒ C): C

    Permalink

    Folds each of the possibile cases into a summary value.

    Folds each of the possibile cases into a summary value.

    Definition Classes
    These
  21. final def forEach[F[+_], C](f: (Nothing) ⇒ F[C])(implicit arg0: IdentityBoth[F], arg1: Covariant[F]): F[These[A, C]]

    Permalink

    Transforms the successful result of this compuation with the specified effectual function, leaving any error value unchanged.

    Transforms the successful result of this compuation with the specified effectual function, leaving any error value unchanged.

    Definition Classes
    These
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isBoth: Boolean

    Permalink

    Returns whether this value is a Both.

    Returns whether this value is a Both.

    Definition Classes
    These
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. final def isLeft: Boolean

    Permalink

    Returns whether this value is a Left.

    Returns whether this value is a Left.

    Definition Classes
    These
  26. final def isRight: Boolean

    Permalink

    Returns whether this value is a Right.

    Returns whether this value is a Right.

    Definition Classes
    These
  27. final def map[C](f: (Nothing) ⇒ C): These[A, C]

    Permalink

    Transforms the B value with the specified function.

    Transforms the B value with the specified function.

    Definition Classes
    These
  28. final def mapLeft[A2](f: (A) ⇒ A2): These[A2, Nothing]

    Permalink

    Transforms the A value with the specified function.

    Transforms the A value with the specified function.

    Definition Classes
    These
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def orElse[A1 >: A, B1 >: Nothing](that: ⇒ These[A1, B1])(implicit arg0: Associative[A1]): These[A1, B1]

    Permalink
    Definition Classes
    These
  33. final def orElseEither[A1 >: A, C](that: ⇒ These[A1, C])(implicit arg0: Associative[A1]): These[A1, Either[Nothing, C]]

    Permalink
    Definition Classes
    These
  34. def reduceMap[C](f: (A) ⇒ C, g: (Nothing) ⇒ C)(implicit C: Associative[C]): C

    Permalink
    Definition Classes
    These
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. final def toEither: Either[A, Nothing]

    Permalink

    Converts this value to an Either containing a Right if this value contains a success or a Left otherwise, discarding information about any errors in the case of success.

    Converts this value to an Either containing a Right if this value contains a success or a Left otherwise, discarding information about any errors in the case of success.

    Definition Classes
    These
  37. final def toOption: Option[Nothing]

    Permalink

    Converts this value to an Option containing Some if this value contains a success or None otherwise, discarding information about any errors in the case of success.

    Converts this value to an Option containing Some if this value contains a success or None otherwise, discarding information about any errors in the case of success.

    Definition Classes
    These
  38. final def toValidation: Validation[A, Nothing]

    Permalink

    Converts this value to a validation success if this value contains a success or a validation failure otherwise, discarding information about any errors in the case of success.

    Converts this value to a validation success if this value contains a success or a validation failure otherwise, discarding information about any errors in the case of success.

    Definition Classes
    These
  39. final def toValidationNonEmptyChunk[A1](implicit ev: <:<[A, NonEmptyChunk[A1]]): Validation[A1, Nothing]

    Permalink

    Converts this value to a validation success if this value contains a success or a validation failure otherwise, submerging multiple errors into the structure of the validation and discarding information about any errors in the case of success.

    Converts this value to a validation success if this value contains a success or a validation failure otherwise, submerging multiple errors into the structure of the validation and discarding information about any errors in the case of success.

    Definition Classes
    These
  40. val value: A

    Permalink
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def zip[A1 >: A, C, D](that: These[A1, C])(implicit arg0: Associative[A1]): These[A1, (Nothing, C)]

    Permalink

    Combines this computation sequentially with that computation, combining their results into a tuple.

    Combines this computation sequentially with that computation, combining their results into a tuple. If this computation does not return a success that computation will not be performed. If both computations are performed any errors will be combined using the Associative instance for A.

    Definition Classes
    These
  45. final def zipLeft[A1 >: A, C, D](that: These[A1, C])(implicit arg0: Associative[A1]): These[A1, Nothing]

    Permalink

    Combines this computation sequentially with that computation, returning only the left value.

    Combines this computation sequentially with that computation, returning only the left value. If this computation does not return a success that computation will not be performed. If both computations are performed any errors will be combined using the Associative instance for A.

    Definition Classes
    These
  46. final def zipPar[A1 >: A, C, D](that: These[A1, C])(implicit arg0: Commutative[A1]): These[A1, (Nothing, C)]

    Permalink

    Combines this computation with that computation into a tuple, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Combines this computation with that computation into a tuple, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Definition Classes
    These
  47. final def zipParLeft[A1 >: A, C, D](that: These[A1, C])(implicit arg0: Commutative[A1]): These[A1, Nothing]

    Permalink

    Combines this computation with that computation and returning only the left value, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Combines this computation with that computation and returning only the left value, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Definition Classes
    These
  48. final def zipParRight[A1 >: A, C, D](that: These[A1, C])(implicit arg0: Commutative[A1]): These[A1, C]

    Permalink

    Combines this computation with that computation and returning only the right value, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Combines this computation with that computation and returning only the right value, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Definition Classes
    These
  49. final def zipRight[A1 >: A, C, D](that: These[A1, C])(implicit arg0: Associative[A1]): These[A1, C]

    Permalink

    Combines this computation sequentially with that computation, returning only the right value.

    Combines this computation sequentially with that computation, returning only the right value. If this computation does not return a success that computation will not be performed. If both computations are performed any errors will be combined using the Associative instance for A.

    Definition Classes
    These
  50. final def zipWith[A1 >: A, C, D](that: These[A1, C])(f: (Nothing, C) ⇒ D)(implicit arg0: Associative[A1]): These[A1, D]

    Permalink

    Combines this computation sequentially with that computation, combining their results with the specified function.

    Combines this computation sequentially with that computation, combining their results with the specified function. If this computation does not return a success that computation will not be performed. If both computations are performed any errors will be combined using the Associative instance for A.

    Definition Classes
    These
  51. final def zipWithPar[A1 >: A, C, D](that: These[A1, C])(f: (Nothing, C) ⇒ D)(implicit arg0: Commutative[A1]): These[A1, D]

    Permalink

    Combines this computation with that computation using the specified function, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Combines this computation with that computation using the specified function, performing both computations even if this computation does not return a success and combining any errors using the Commutative instance for A.

    Definition Classes
    These

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from These[A, Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped