object Validation
- Annotations
- @ValidationMacro()
- Alphabetic
- By Inheritance
- Validation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class OKBiasedEither [L, R] extends AnyRef
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
- val KO: Left.type
- val OK: Right.type
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
failures[L](eithers: Either[L, _]*): List[L]
Retrieve failures (left) for several Either values
Retrieve failures (left) for several Either values
- returns
failures
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
def
fromCatchable[R](body: ⇒ R): Either[String, R]
Return Either from code block
Return Either from code block
- returns
Either from code block
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasFailures[L](eithers: Either[L, _]*): Boolean
Tells if eithers contain failures (left)
Tells if eithers contain failures (left)
- returns
boolean
-
def
hasSuccesses[R](eithers: Either[_, R]*): Boolean
Tells if eithers contain successes (right)
Tells if eithers contain successes (right)
- returns
boolean
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )