Object

io.github.hamsters

Validation

Related Doc: package hamsters

Permalink

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val KO: Left.type

    Permalink
  5. val OK: Right.type

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def failures[L](eithers: Either[L, _]*): List[L]

    Permalink

    Retrieve failures (left) for several Either values

    Retrieve failures (left) for several Either values

    returns

    failures

  11. def finalize(): Unit

    Permalink
    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]

    Permalink

    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]

    Permalink

    Return Either from code block

    Return Either from code block

    returns

    Either from code block

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasFailures[L](eithers: Either[L, _]*): Boolean

    Permalink

    Tells if eithers contain failures (left)

    Tells if eithers contain failures (left)

    returns

    boolean

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

    Permalink

    Tells if eithers contain successes (right)

    Tells if eithers contain successes (right)

    returns

    boolean

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  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)]

    Permalink

    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)]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped