Predicate

object Predicate
class Object
trait Matchable
class Any

Value members

Concrete methods

def and[T](p1: T => Boolean, p2: T => Boolean): T => Boolean

Combine two predicates(T => Boolean) with And operator.

Combine two predicates(T => Boolean) with And operator.

Type Params
T

Subject type of predicates

Value Params
p1

First predicate

p2

Second predicate

Returns

Result of combination of p1 and p2 using And operator.

def or[T](p1: T => Boolean, p2: T => Boolean): T => Boolean

Combine two predicates(T => Boolean) with Or operator.

Combine two predicates(T => Boolean) with Or operator.

Type Params
T

Subject type of predicates

Value Params
p1

First predicate

p2

Second predicate

Returns

Result of combination of p1 and p2 using Or operator.

Concrete fields

lazy val alwaysFalse: => Boolean

Always false predicate.

Always false predicate.

lazy val alwaysTrue: => Boolean

Always true predicate.

Always true predicate.