trait Uniform[-R <: Needs[_, _], -T, +A] extends AnyRef
- Alphabetic
- By Inheritance
- Uniform
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def emptyUnless[B >: A, T1 <: T, R1 <: R](wmb: Uniform[R1, T1, Boolean])(implicit mon: Monoid[B]): Uniform[R1, T1, B]
Returns monoid empty unless the predicate given is true, will short circuit if possible.
Returns monoid empty unless the predicate given is true, will short circuit if possible.
ask[Salary]("salary") emptyUnless ask[Boolean]("employed")
- def emptyUnless[B >: A](predicate: => Boolean)(implicit mon: Monoid[B]): Uniform[R, T, B]
Returns monoid empty unless the predicate given is true, will short circuit if possible.
Returns monoid empty unless the predicate given is true, will short circuit if possible.
ask[Salary]("salary") emptyUnless user.isEmployed
- def emptyWhen[B >: A, T1 <: T, R1 <: R](wmb: Uniform[R1, T1, Boolean])(implicit mon: Monoid[B]): Uniform[R1, T1, B]
Returns monoid empty when the predicate given is true, will short circuit if possible.
Returns monoid empty when the predicate given is true, will short circuit if possible.
ask[Salary]("salary") emptyWhen ask[Boolean]("is-exempt")
- def emptyWhen[B >: A](predicate: => Boolean)(implicit mon: Monoid[B]): Uniform[R, T, B]
Returns monoid empty when the predicate given is true, will short circuit if possible.
Returns monoid empty when the predicate given is true, will short circuit if possible.
ask[Salary]("salary") emptyWhen user.isExempt
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flatMap[R1 <: R, B, T1 <: T](f: (A) => Uniform[R1, T1, B]): Uniform[R1, T1, B]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[F[_], B](f: (A) => B): Uniform[R, T, B]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unless[R1 <: R, T1 <: T](wmb: Uniform[R1, T1, Boolean]): Uniform[R1, T1, Option[A]]
Returns None when the predicate given is true, will short circuit if possible.
Returns None when the predicate given is true, will short circuit if possible.
ask[Salary]("salary") unless ask[Boolean]("is-exempt")
- def unless(predicate: => Boolean): Uniform[R, T, Option[A]]
Returns None when the predicate given is true, will short circuit if possible.
Returns None when the predicate given is true, will short circuit if possible.
ask[Salary]("salary") unless user.isExempt
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def when[R1 <: R, T1 <: T](wmb: Uniform[R1, T1, Boolean]): Uniform[R1, T1, Option[A]]
Returns None unless the predicate given is true, will short circuit if possible.
Returns None unless the predicate given is true, will short circuit if possible.
ask[Salary]("salary") when ask[Boolean]("employed")
- def when(predicate: => Boolean): Uniform[R, T, Option[A]]
Returns None unless the predicate given is true, will short circuit if possible.
Returns None unless the predicate given is true, will short circuit if possible.
ask[Salary]("salary") when user.isEmployed
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated