o

io.github.hamsters

Validation

object Validation

Annotations
@ValidationMacro()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class OKBiasedEither[L, R] extends AnyRef

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. val KO: Left.type
  5. val OK: Right.type
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def failures[L](eithers: Either[L, _]*): List[L]

    Retrieve failures (left) for several Either values

    Retrieve failures (left) for several Either values

    returns

    failures

  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromCatchable[L, R](body: ⇒ R, errorMgt: (Throwable) ⇒ L): Either[L, R]

    Return Either from code block with custom error management

    Return Either from code block with custom error management

    errorMgt

    : error management function

    returns

    Either from code block

  13. def fromCatchable[R](body: ⇒ R): Either[String, R]

    Return Either from code block

    Return Either from code block

    returns

    Either from code block

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hasFailures[L](eithers: Either[L, _]*): Boolean

    Tells if eithers contain failures (left)

    Tells if eithers contain failures (left)

    returns

    boolean

  16. def hasSuccesses[R](eithers: Either[_, R]*): Boolean

    Tells if eithers contain successes (right)

    Tells if eithers contain successes (right)

    returns

    boolean

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def run[L, R1, R2, R3](e1: Either[L, R1], e2: Either[L, R2], e3: Either[L, R3]): Either[List[L], (R1, R2, R3)]

    Run the validation This validation accumulates all errors Arity 2 to 22 methods are available and generated from macro

    Run the validation This validation accumulates all errors Arity 2 to 22 methods are available and generated from macro

    e1

    : first either

    e2

    : second either

    e3

    : third either

    returns

    a tuple (R1, R2, R3) of results in a Right if validation is successful or a list of errors L if it fails

  23. def run[L, R1, R2](e1: Either[L, R1], e2: Either[L, R2]): Either[List[L], (R1, R2)]

    Run the validation This validation accumulates all errors Arity 2 to 22 methods are available and generated from macro

    Run the validation This validation accumulates all errors Arity 2 to 22 methods are available and generated from macro

    e1

    : first either

    e2

    : second either

    returns

    a tuple (R1, R2) of results in a Right if validation is successful or a list of errors L if it fails

  24. def successes(eithers: Either[_, _]*): List[Any]

    Return successes (right) for several Either values Validation.run should be used instead in most cases as it is a type-safer method (it does not return a List[Any])

    Return successes (right) for several Either values Validation.run should be used instead in most cases as it is a type-safer method (it does not return a List[Any])

    returns

    successes

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped