Predicate

cats.collections.Predicate
See thePredicate companion object
abstract class Predicate[-A] extends A => Boolean

An intensional set, which is a set which instead of enumerating its elements as a extensional set does, it is defined by a predicate which is a test for membership.

Attributes

Companion:
object
Source:
Predicate.scala
Graph
Supertypes
trait A => Boolean
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def &[B <: A](other: Predicate[B]): Predicate[B]

returns a predicate which is the intersection of this predicate and another

returns a predicate which is the intersection of this predicate and another

Attributes

Source:
Predicate.scala
def -[B <: A](remove: Predicate[B]): Predicate[B]

Returns the predicate which is the the difference of another predicate removed from this predicate

Returns the predicate which is the the difference of another predicate removed from this predicate

Attributes

Source:
Predicate.scala
def contains(a: A): Boolean

Returns true if the value satisfies the predicate.

Returns true if the value satisfies the predicate.

Attributes

Source:
Predicate.scala
def diff[B <: A](remove: Predicate[B]): Predicate[B]

Returns the predicate which is the the difference of another predicate removed from this predicate

Returns the predicate which is the the difference of another predicate removed from this predicate

Attributes

Source:
Predicate.scala
def intersection[B <: A](other: Predicate[B]): Predicate[B]

returns a predicate which is the intersection of this predicate and another

returns a predicate which is the intersection of this predicate and another

Attributes

Source:
Predicate.scala

Return the opposite predicate

Return the opposite predicate

Attributes

Source:
Predicate.scala

Return the opposite predicate

Return the opposite predicate

Attributes

Source:
Predicate.scala
def union[B <: A](other: Predicate[B]): Predicate[B]

returns a predicate which is the union of this predicate and another

returns a predicate which is the union of this predicate and another

Attributes

Source:
Predicate.scala
def |[B <: A](other: Predicate[B]): Predicate[B]

returns a predicate which is the union of this predicate and another

returns a predicate which is the union of this predicate and another

Attributes

Source:
Predicate.scala

Inherited methods

def andThen[A](g: Boolean => A): T1 => A

Attributes

Inherited from:
Function1
def apply(v1: A): R

Attributes

Inherited from:
Function1
def compose[A](g: A => A): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1