class Predicate[-A] extends (=> A) => PredicateResult
A Predicate[A] is capable of producing assertion results on an A. As a
proposition, predicates compose using logical conjuction and disjunction,
and can be negated.
- Self Type
- Predicate[A]
- Alphabetic
- By Inheritance
- Predicate
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def &&[A1 <: A](that: => Predicate[A1]): Predicate[A1]
Returns a new predicate that succeeds only if both predicates succeed.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (PredicateResult) => A): (=> A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def apply(a: => A): PredicateResult
Evaluates the predicate with the specified value.
Evaluates the predicate with the specified value.
- Definition Classes
- Predicate → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compose[A](g: (A) => => A): (A) => PredicateResult
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
- Definition Classes
- Predicate → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def hashCode(): Int
- Definition Classes
- Predicate → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def negate: Predicate[A]
Returns the negation of this predicate.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val run: (=> A) => PredicateResult
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def test(a: A): Boolean
Tests the predicate to see if it would succeed on the given element.
- final def toString(): String
Provides a meaningful string rendering of the predicate.
Provides a meaningful string rendering of the predicate.
- Definition Classes
- Predicate → Function1 → AnyRef → Any
- 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()
- final def ||[A1 <: A](that: => Predicate[A1]): Predicate[A1]
Returns a new predicate that succeeds if either predicates succeed.