final case class Success[+W, +A](log: Chunk[W], value: A) extends ZValidation[W, Nothing, A] with Product with Serializable
- Alphabetic
- By Inheritance
- Success
- Serializable
- Serializable
- Product
- Equals
- ZValidation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&>[W1 >: W, E1 >: Nothing, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, B]
A symbolic alias for
zipParRight.A symbolic alias for
zipParRight.- Definition Classes
- ZValidation
-
final
def
<&[W1 >: W, E1 >: Nothing, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, A]
A symbolic alias for
zipParLeft.A symbolic alias for
zipParLeft.- Definition Classes
- ZValidation
-
final
def
<&>[W1 >: W, E1 >: Nothing, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, (A, B)]
A symbolic alias for
zipPar.A symbolic alias for
zipPar.- Definition Classes
- ZValidation
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
??[W1 >: W](w1: W1): ZValidation[W1, Nothing, A]
A symbolic alias for
log.A symbolic alias for
log.- Definition Classes
- ZValidation
-
final
def
as[B](b: B): ZValidation[W, Nothing, B]
Maps the successful value of this
ZValidationto the specified constant value.Maps the successful value of this
ZValidationto the specified constant value.- Definition Classes
- ZValidation
-
final
def
asError[E2](e: E2): ZValidation[W, E2, A]
Maps the error value of this
ZValidationto the specified constant value.Maps the error value of this
ZValidationto the specified constant value.- Definition Classes
- ZValidation
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(that: Any): Boolean
Returns whether this
ZValidationand the specifiedZValidationare equal to each other.Returns whether this
ZValidationand the specifiedZValidationare equal to each other.- Definition Classes
- ZValidation → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flatMap[W1 >: W, E1 >: Nothing, B](f: (A) ⇒ ZValidation[W1, E1, B]): ZValidation[W1, E1, B]
Transforms the value of this
ZValidationwith the specified validation function if it is a success or returns the value unchanged otherwise.Transforms the value of this
ZValidationwith the specified validation function if it is a success or returns the value unchanged otherwise.- Definition Classes
- ZValidation
-
final
def
flatten[W1 >: W, E1 >: Nothing, B](implicit ev1: <:<[A, ZValidation[W1, E1, B]]): ZValidation[W1, E1, B]
Returns a ZValidation that is this ZValidation if failing or the inner ZValidation if the outer one succeeds.
Returns a ZValidation that is this ZValidation if failing or the inner ZValidation if the outer one succeeds. In particular, the sequential aspect of this combinator precludes combining error values of outer and inner ZValidations. This method can be used to "flatten" nested ZValidation.
- Definition Classes
- ZValidation
-
final
def
fold[B](failure: (NonEmptyChunk[Nothing]) ⇒ B, success: (A) ⇒ B): B
Folds over the error and success values of this
ZValidation.Folds over the error and success values of this
ZValidation.- Definition Classes
- ZValidation
-
final
def
forEach[F[+_], B](f: (A) ⇒ F[B])(implicit arg0: IdentityBoth[F], arg1: Covariant[F]): F[ZValidation[W, Nothing, B]]
Transforms the value of this
ZValidationwith the specified effectual function if it is a success or returns the value unchanged otherwise.Transforms the value of this
ZValidationwith the specified effectual function if it is a success or returns the value unchanged otherwise.- Definition Classes
- ZValidation
-
final
def
get(implicit ev: <:<[Nothing, Nothing]): A
Returns the value, because no error has occurred.
Returns the value, because no error has occurred.
- Definition Classes
- ZValidation
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getLog: Chunk[W]
Returns the value of the log.
Returns the value of the log.
- Definition Classes
- ZValidation
-
final
def
getOrElse[A1 >: A](fallback: ⇒ A1): A1
Returns the value, if successful, or the provided
fallbackvalue.Returns the value, if successful, or the provided
fallbackvalue.- Definition Classes
- ZValidation
-
final
def
getOrElseWith[A1 >: A](f: (NonEmptyChunk[Nothing]) ⇒ A1): A1
Returns the successful value or handles the errors that have accumulated.
Returns the successful value or handles the errors that have accumulated.
- Definition Classes
- ZValidation
-
final
def
hashCode(): Int
- Definition Classes
- ZValidation → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
log[W1 >: W](w1: W1): ZValidation[W1, Nothing, A]
Writes an entry to the log.
Writes an entry to the log.
- Definition Classes
- ZValidation
- val log: Chunk[W]
-
final
def
map[B](f: (A) ⇒ B): ZValidation[W, Nothing, B]
Transforms the successful value of this
ZValidationwith the specified function.Transforms the successful value of this
ZValidationwith the specified function.- Definition Classes
- ZValidation
-
final
def
mapError[E2](f: (Nothing) ⇒ E2): ZValidation[W, E2, A]
Transforms the error value of this
ZValidationwith the specified function.Transforms the error value of this
ZValidationwith the specified function.- Definition Classes
- ZValidation
-
final
def
mapErrorAll[E2](f: (NonEmptyChunk[Nothing]) ⇒ NonEmptyChunk[E2]): ZValidation[W, E2, A]
Transforms all the error values of this
ZValidationwith the specified function.Transforms all the error values of this
ZValidationwith the specified function.- Definition Classes
- ZValidation
-
final
def
mapLog[W2](f: (W) ⇒ W2): ZValidation[W2, Nothing, A]
Transforms the log entries of this
ZValidationwith the specified function.Transforms the log entries of this
ZValidationwith the specified function.- Definition Classes
- ZValidation
-
final
def
mapLogAll[W2](f: (Chunk[W]) ⇒ Chunk[W2]): ZValidation[W2, Nothing, A]
Transforms all the log entries of this
ZValidationwith the specified function.Transforms all the log entries of this
ZValidationwith the specified function.- Definition Classes
- ZValidation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
orElse[W1 >: W, E1, A1 >: A](that: ZValidation[W1, E1, A1]): ZValidation[W1, E1, A1]
- Definition Classes
- ZValidation
-
final
def
orElseLog[W1 >: W, E1, A1 >: A](that: ZValidation[W1, E1, A1])(implicit ev: <:<[Nothing, W1]): ZValidation[W1, E1, A1]
- Definition Classes
- ZValidation
-
final
def
runLog[B]: (Chunk[W], Either[NonEmptyChunk[Nothing], A])
Exposes the result of this validation function as either a
Rightwith a success of typeAor aLeftwith one or more errors of typeE, along with the log.Exposes the result of this validation function as either a
Rightwith a success of typeAor aLeftwith one or more errors of typeE, along with the log.- Definition Classes
- ZValidation
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toEither: Either[NonEmptyChunk[Nothing], A]
Transforms this
ZValidationto anEither, discarding the log.Transforms this
ZValidationto anEither, discarding the log.- Definition Classes
- ZValidation
-
final
def
toEitherAssociative[E1 >: Nothing](implicit A: Associative[E1]): Either[E1, A]
Transforms this
ZValidationto anEither, aggregating errors using providedAssociativeinstance, discarding the log.Transforms this
ZValidationto anEither, aggregating errors using providedAssociativeinstance, discarding the log.- Definition Classes
- ZValidation
-
final
def
toEitherMultiSet: Either[NonEmptyMultiSet[Nothing], A]
Transforms this
ZValidationto anEither, discarding the order in which the errors occurred and discarding the log.Transforms this
ZValidationto anEither, discarding the order in which the errors occurred and discarding the log.- Definition Classes
- ZValidation
-
final
def
toEitherWith[E2](f: (NonEmptyChunk[Nothing]) ⇒ E2): Either[E2, A]
Transforms this
ZValidationto anEither, transforming the accumulated errors and discarding the log.Transforms this
ZValidationto anEither, transforming the accumulated errors and discarding the log.- Definition Classes
- ZValidation
-
final
def
toOption: Option[A]
Transforms this
ZValidationto anOption, discarding information about the errors and log.Transforms this
ZValidationto anOption, discarding information about the errors and log.- Definition Classes
- ZValidation
-
final
def
toTry(implicit ev: <:<[Nothing, Throwable]): Try[A]
Transforms this
ZValidationto aTry, discarding all but the first error and the log.Transforms this
ZValidationto aTry, discarding all but the first error and the log.- Definition Classes
- ZValidation
-
final
def
toZIO: IO[Nothing, A]
Converts this
ZValidationinto aZIOeffect, discarding the log.Converts this
ZValidationinto aZIOeffect, discarding the log.- Definition Classes
- ZValidation
-
final
def
toZIOAssociative[E1 >: Nothing](implicit A: Associative[E1]): IO[E1, A]
Transforms this
ZValidationto anZIOeffect, aggregating errors using providedAssociativeinstance, discarding the log.Transforms this
ZValidationto anZIOeffect, aggregating errors using providedAssociativeinstance, discarding the log.- Definition Classes
- ZValidation
-
final
def
toZIOParallelErrors: IO[NonEmptyChunk[Nothing], A]
Converts this
ZValidationinto aZIOeffect and exposes all parallel errors in a single call, discarding the log.Converts this
ZValidationinto aZIOeffect and exposes all parallel errors in a single call, discarding the log.- Definition Classes
- ZValidation
- val value: A
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
zipPar[W1 >: W, E1 >: Nothing, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, (A, B)]
Combines this
ZValidationwith the specifiedZValidation, returning a tuple of their results.Combines this
ZValidationwith the specifiedZValidation, returning a tuple of their results. Returns either the combined result if both were successes or otherwise returns a failure with all errors.- Definition Classes
- ZValidation
-
final
def
zipParLeft[W1 >: W, E1 >: Nothing, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, A]
A variant of
zipParthat keeps only the left success value, but returns a failure with all errors if either thisZValidationor the specifiedZValidationfail.A variant of
zipParthat keeps only the left success value, but returns a failure with all errors if either thisZValidationor the specifiedZValidationfail.- Definition Classes
- ZValidation
-
final
def
zipParRight[W1 >: W, E1 >: Nothing, B](that: ZValidation[W1, E1, B]): ZValidation[W1, E1, B]
A variant of
zipParthat keeps only the right success value, but returns a failure with all errors if either thisZValidationor the specifiedZValidationfail.A variant of
zipParthat keeps only the right success value, but returns a failure with all errors if either thisZValidationor the specifiedZValidationfail.- Definition Classes
- ZValidation
-
final
def
zipWithPar[W1 >: W, E1 >: Nothing, B, C](that: ZValidation[W1, E1, B])(f: (A, B) ⇒ C): ZValidation[W1, E1, C]
Combines this
ZValidationwith the specifiedZValidation, using the functionfto combine their success values.Combines this
ZValidationwith the specifiedZValidation, using the functionfto combine their success values. Returns either the combined result if both were successes or otherwise returns a failure with all errors.- Definition Classes
- ZValidation