object Predicate
- Alphabetic
- By Inheritance
- Predicate
- 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
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
val
anything: Predicate[Any]
Makes a new predicate that always succeeds.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
contains[A](element: A): Predicate[Iterable[A]]
Makes a new predicate that requires an iterable contain the specified element.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals[A](expected: A): Predicate[A]
Makes a new predicate that requires a value equal the specified value.
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
exists[A](predicate: Predicate[A]): Predicate[Iterable[A]]
Makes a new predicate that requires an iterable contain one element satisfying the given predicate.
-
final
def
fails[E](predicate: Predicate[E]): Predicate[Exit[E, Any]]
Makes a new predicate that requires an exit value to fail.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
forall[A](predicate: Predicate[A]): Predicate[Iterable[A]]
Makes a new predicate that requires an iterable contain only elements satisfying the given predicate.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
hasField[A, B](name: String, proj: (A) ⇒ B, predicate: Predicate[B]): Predicate[A]
Makes a new predicate that focuses in on a field in a case class.
Makes a new predicate that focuses in on a field in a case class.
hasField("age", _.age, within(0, 10))
-
final
def
hasSize[A](predicate: Predicate[Int]): Predicate[Iterable[A]]
Makes a new predicate that requires the size of an iterable be satisfied by the specified predicate.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isCase[Sum, Proj](termName: String, term: (Sum) ⇒ Option[Proj], predicate: Predicate[Proj]): Predicate[Sum]
Makes a new predicate that requires the sum type be a specified term.
Makes a new predicate that requires the sum type be a specified term.
isCase("Some", Some.unapply, anything)
-
final
def
isFalse: Predicate[Boolean]
Makes a new predicate that requires a value be true.
-
final
def
isGreaterThan[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]
Makes a new predicate that requires the numeric value be greater than the specified reference value.
-
final
def
isGreaterThanEqual[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]
Makes a new predicate that requires the numeric value be greater than or equal to the specified reference value.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isLeft[A](predicate: Predicate[A]): Predicate[Either[A, Nothing]]
Makes a new predicate that requires a Left value satisfying a specified predicate.
-
final
def
isLessThan[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]
Makes a new predicate that requires the numeric value be greater than the specified reference value.
-
final
def
isLessThanEqual[A](reference: A)(implicit arg0: Numeric[A]): Predicate[A]
Makes a new predicate that requires the numeric value be greater than the specified reference value.
-
final
val
isNone: Predicate[Option[Any]]
Makes a new predicate that requires a Some value satisfying the specified predicate.
-
final
def
isRight[A](predicate: Predicate[A]): Predicate[Either[Nothing, A]]
Makes a new predicate that requires a Right value satisfying a specified predicate.
-
final
def
isSome[A](predicate: Predicate[A]): Predicate[Option[A]]
Makes a new predicate that requires a Some value satisfying the specified predicate.
-
final
def
isSubtype[A](predicate: Predicate[A])(implicit C: ClassTag[A]): Predicate[Any]
Makes a predicate that requires a value have the specified type.
-
final
def
isTrue: Predicate[Boolean]
Makes a new predicate that requires a value be true.
-
final
def
isWithin[A](min: A, max: A)(implicit arg0: Numeric[A]): Predicate[A]
Returns a new predicate that requires a numeric value to fall within a specified min and max (inclusive).
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
not[A](predicate: Predicate[A]): Predicate[A]
Makes a new predicate that negates the specified predicate.
-
final
val
nothing: Predicate[Any]
Makes a new predicate that always fails.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
predicate[A](render: String)(run: (⇒ A) ⇒ Assertion[Unit]): Predicate[A]
Makes a new
Predicatefrom a pretty-printing and a function. -
final
def
predicateDirect[A](render: String)(run: (⇒ A) ⇒ PredicateResult): Predicate[A]
Makes a new
Predicatefrom a pretty-printing and a function. -
final
def
predicateRec[A](render: String)(run: (Predicate[A], ⇒ A) ⇒ PredicateResult): Predicate[A]
Makes a new
Predicatefrom a pretty-printing and a function, passing the predicate itself to the specified function, so it can embed a recursive reference into the assert result. -
final
def
succeeds[A](predicate: Predicate[A]): Predicate[Exit[Any, A]]
Makes a new predicate that requires an exit value to succeed.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
throws[A](predicate: Predicate[Throwable]): Predicate[A]
Returns a new predicate that requires the expression to throw.
-
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
- @native() @throws( ... )