trait ValidationResult[VR[_]] extends AnyRef

Typeclass that represents ValidationResult

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValidationResult
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type TypeClass[E] = VR[E]

Abstract Value Members

  1. abstract def and[E](a: VR[E], b: VR[E]): VR[E]

    Combine using AND a and b

  2. abstract def errors[E](vr: VR[E]): List[E]

    Extract all vr errors to List

  3. abstract def invalid[E](e: E): VR[E]

    Create invalid VR[E] with given e error

  4. abstract def isValid[E](e: VR[E]): Boolean

    Check if e is valid

  5. abstract def map[E, B](vr: VR[E])(f: (E) ⇒ B): VR[B]

    Map vr into other using f function

  6. abstract def strategy: Strategy

    Implement to give hint for short-circuiting

  7. abstract def valid[E]: VR[E]

    Create valid VR[E]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def invalidMany[E](eh: E, et: E*): VR[E]

    Create Invalid VR with many errors.

    Create Invalid VR with many errors. Override this for perfomance

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isInvalid[E](e: VR[E]): Boolean

    Check if e is invalid

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def or[E](a: VR[E], b: VR[E]): VR[E]

    Combine using OR a and b

  18. def sequence[E](results: List[VR[E]]): VR[E]

    Combines all results using AND

  19. def sequence[E](results: VR[E]*): VR[E]

    Combines all results using AND

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def unless[E](cond: Boolean)(vr: ⇒ VR[E]): VR[E]

    If cond is false returns vr else valid

  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def when[E](cond: Boolean)(vr: ⇒ VR[E]): VR[E]

    If cond is true returns vr else valid

Inherited from AnyRef

Inherited from Any

Ungrouped