trait Validated[V[_]] extends AnyRef
Typeclass that represents Validated
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Validated
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type TypeClass[E] = V[E]
Abstract Value Members
- abstract def and[E](va: V[E], vb: V[E]): V[E]
Combines
aandbusing AND - abstract def errors[E](v: V[E]): List[E]
Returns
verrors as scala.collection.immutable.List - abstract def invalid[E](e: E): V[E]
Returns invalid V[E] with given error
- abstract def isValid[E](v: V[E]): Boolean
Checks if
vis valid - abstract def map[E, B](v: V[E])(f: (E) => B): V[B]
Maps
vusingffunction - abstract def strategy: ValidatedStrategy
Returns this Strategy
- abstract def valid[E]: V[E]
Returns valid V[E]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andAll[E](list: List[V[E]]): V[E]
Combiness all
listusing AND - def asError[E](v: V[E])(error: E): V[E]
Returns
errorifvis invalid - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asInvalid[E](v: V[E])(invalid: V[E]): V[E]
Returns
invalidifvis invalid - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fold[E, B](v: V[E])(fe: (V[E]) => B, fa: => B): B
Folds
V[E]intoBusing provided functions for valid and invalid cases - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isInvalid[E](v: V[E]): Boolean
Checks if
vis invalid - 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()
- def or[E](va: V[E], vb: V[E]): V[E]
Combines
aandbusing OR - def orAll[E](list: List[V[E]]): V[E]
Combiness all
listusing OR - def sequence[E](list: List[V[E]]): V[E]
Combiness all
listusing AND - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def traverse[A, E](list: A*)(error: (A) => V[E]): V[E]
- def traverse[A, E](list: List[A])(error: (A) => V[E]): V[E]
- def unless[E](cond: Boolean)(v: => V[E]): V[E]
Returns
vifcondis false else returns valid - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def when[E](cond: Boolean)(v: => V[E]): V[E]
Returns
vifcondis true else returns valid - def whenInvalid[E](v: V[E])(f: (V[E]) => V[E]): V[E]
Returns
fapplied toaifais invalid else returnsa - def whenValid[E](va: V[E])(vb: => V[E]): V[E]
Returns
oifais valid else returnsa