object Rule
- Alphabetic
- By Inheritance
- Rule
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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 and[F[_], V[_], E](ra: Rule[F, V, E], rb: Rule[F, V, E])(implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Combines two
Rule[F, V, E]'s using logical AND.Combines two
Rule[F, V, E]'s using logical AND. Short-circuits ifValidated.strategyis jap.fields.typeclass.FailFastStrategy - def andAll[F[_], V[_], E](rules: List[Rule[F, V, E]])(implicit arg0: Effect[F], arg1: Validated[V]): Rule[F, V, E]
Combines all rules using AND
- def apply[F[_], V[_], E](effect: F[V[E]]): Rule[F, V, E]
Same as Rule.wrap
Same as Rule.wrap
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def defer[F[_], V[_], E](rule: => Rule[F, V, E])(implicit F: Effect[F]): Rule[F, V, E]
Defers Rule
- def effect[F[_], V[_], E](effect: => F[V[E]])(implicit F: Effect[F]): Rule[F, V, E]
Lazily converts an
F[V[E]]to aRule[F, VR, E] - def ensure[F[_], V[_], E](v: => V[E])(test: => Boolean)(implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Ensures that if
testpass else returns providedV[E] - def ensureF[F[_], V[_], E](v: => V[E])(test: => F[Boolean])(implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Ensures that if
testpass else returns providedV[E] - 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[F[_], V[_], E, B](rule: Rule[F, V, E])(onInvalid: (V[E]) => B, onValid: => B)(implicit F: Effect[F], V: Validated[V]): F[B]
Folds
Rule[F, V, E]intoF[B] - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invalid[F[_], V[_], E](error: => E)(implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Converts
Eto aRule[F, V, E] - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modify[F[_], V[_], E](rule: Rule[F, V, E])(f: (V[E]) => V[E])(implicit F: Effect[F]): Rule[F, V, E]
Modifies
ruleValidated value usingf - def modifyM[F[_], V[_], E](rule: Rule[F, V, E])(f: (V[E]) => Rule[F, V, E])(implicit F: Effect[F]): Rule[F, V, E]
Modifies
ruleValidated value usingf - 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[F[_], V[_], E](ra: Rule[F, V, E], rb: Rule[F, V, E])(implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Combines two
Rule[F, V, E]'s using logical OR.Combines two
Rule[F, V, E]'s using logical OR. Short-circuits if first rule is valid - def orAll[F[_], V[_], E](rules: List[Rule[F, V, E]])(implicit arg0: Effect[F], arg1: Validated[V]): Rule[F, V, E]
Combines all rules using OR
- def pure[F[_], V[_], E](validated: => V[E])(implicit F: Effect[F]): Rule[F, V, E]
Lazily converts an
V[E]toRule[F, VR, E] - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unwrap[F[_], V[_], E](rule: Rule[F, V, E]): F[V[E]]
Unwraps
rulefrom tagged typeUnwraps
rulefrom tagged type- Annotations
- @inline()
- def valid[F[_], V[_], E](implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Returns always valid
Rule[F, V, E] - 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[F[_], V[_], E](test: => Boolean)(rule: => Rule[F, V, E])(implicit arg0: Effect[F], arg1: Validated[V]): Rule[F, V, E]
Applies
ruleonly whentestpass - def whenF[F[_], V[_], E](test: => F[Boolean])(rule: => Rule[F, V, E])(implicit F: Effect[F], V: Validated[V]): Rule[F, V, E]
Applies
ruleonly whentestpass - def wrap[F[_], V[_], E](effect: F[V[E]]): Rule[F, V, E]
Wraps
ruleinto tagged typeWraps
ruleinto tagged type- Annotations
- @inline()