Validated

besom.util.Validated
See theValidated companion enum
opaque object Validated

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Validated.type

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Types

opaque type ValidatedResult[+E, +A]

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def invalid[E](e: E, es: E*): Validated[E, Nothing]
def valid[A](a: A): Validated[Nothing, A]

Extensions

Extensions

extension [E, A](result: ValidatedResult[E, A])
def filterOrError[EE >: E](p: A => Boolean)(e: EE): ValidatedResult[EE, A]
def flatMap[EE >: E, B](f: A => ValidatedResult[EE, B]): ValidatedResult[EE, B]
def getOrElse[B >: A](default: => B): Result[B]
def lmap[EE](f: E => EE): ValidatedResult[EE, A]
def map[B](f: A => B): ValidatedResult[E, B]
def orElse[EE >: E, B >: A](that: => ValidatedResult[EE, B]): ValidatedResult[EE, B]
def zip[EE >: E, B](vb: ValidatedResult[EE, B])(using z: Zippable[A, B]): ValidatedResult[EE, Out]
def zipWith[EE >: E, B, C](vb: ValidatedResult[EE, B])(f: (A, B) => C): ValidatedResult[EE, C]