Never

com.phasmidsoftware.lascala.predicate.Never
case object Never extends BasePredicate[Any]

"Never" sub-class of BasePredicate which evaluates to false. //@tparam T

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class BasePredicate[Any]
trait Predicate[Any]
trait Any => Try[Boolean]
class Object
trait Matchable
class Any
Show all
Self type
Never.type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
type MirroredType = this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(t: Any): Try[Boolean]

Applies the body of this function to the argument.

Applies the body of this function to the argument.

Value parameters

v1

the function argument

Attributes

Returns

the result of function application.

def tryMap[U : Ordering](f: Any => Try[U]): Try[Predicate[U]]

Type parameters

U

the underlying type of the resulting Predicate

Value parameters

f

the map function, an T=>Predicate[U]

Attributes

Returns

a Try[Predicate[U]

Inherited methods

def &:(p: Predicate[Any]): And[Any]

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the right.

Self will not be evaluated if p evaluates as false

Value parameters

p

the other Predicate

Attributes

Returns

a Predicate which is the conjunctive (and) combination of p with self

Inherited from:
Predicate
def &:(p: Any => Try[Boolean]): And[Any]

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the right.

Self will not be evaluated if p evaluates as false

Value parameters

p

the other Predicate

Attributes

Returns

a Predicate which is the conjunctive (and) combination of p with self

Inherited from:
Predicate
def &^:(f: Any => Boolean): And[Any]

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the right.

Self will not be evaluated if f evaluates as false

Value parameters

f

the other function T=>Boolean (f will not be evaluated if self evaluates as false)

Attributes

Returns

a Predicate which is the conjunctive (and) combination of f with self

Inherited from:
Predicate
def :&(p: Any => Try[Boolean]): And[Any]

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the left.

Value parameters

p

the other Predicate (p will not be evaluated if self evaluates as false)

Attributes

Returns

a Predicate which is the conjunctive (and) combination of self with p

Inherited from:
Predicate
def :^&(f: Any => Boolean): And[Any]

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Conjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the left.

Value parameters

f

the other Predicate (p will not be evaluated if self evaluates as false)

Attributes

Returns

a Predicate which is the conjunctive (and) combination of self with p

Inherited from:
Predicate
def :^|(f: Any => Boolean): Or[Any]

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the left.

Value parameters

f

the other function T=>Boolean (f will not be evaluated if self evaluates as true)

Attributes

Returns

a Predicate which is the disjunctive (or) combination of self with f

Inherited from:
Predicate
def :|(p: Any => Try[Boolean]): Or[Any]

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the left.

Value parameters

p

the other Predicate (p will not be evaluated if self evaluates as true)

Attributes

Returns

a Predicate which is the disjunctive (or) combination of self with p

Inherited from:
Predicate
def andThen[A](g: Try[Boolean] => A): Any => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
def asFunction: Any => Try[Boolean]

Attributes

Inherited from:
Predicate
def compose[A](g: A => Any): A => Try[Boolean]

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1
def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def map[U : Ordering](f: Any => U): Predicate[U]

The map function for Predicate. Note that for operators such as >, U

The map function for Predicate. Note that for operators such as >, U

Type parameters

U

the underlying type of the resulting Predicate

Attributes

Returns

a Predicate[U]

Inherited from:
Predicate
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
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
BasePredicate -> Function1 -> Any
Inherited from:
BasePredicate
def |:(p: Any => Try[Boolean]): Or[Any]

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the right.

Self will not be evaluated if p evaluates as true

Value parameters

p

the other Predicate

Attributes

Returns

a Predicate which is the disjunctive (or) combination of p with self

Inherited from:
Predicate
def |^:(f: Any => Boolean): Or[Any]

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Disjunctive combination of self with another Predicate such that the inputs to both predicates are the same single parameter.

Associates to the right.

Self will not be evaluated if f evaluates as true

Value parameters

f

a T=>Boolean function

Attributes

Returns

a Predicate which is the disjunctive (or) combination of p with self

Inherited from:
Predicate