Func
"Func" sub-class of BasePredicate which evaluates to true if p(x) where x is the parameter passed into the apply method.
Type parameters
- T
-
the underlying type of the Predicate, which must implement Ordering
Value parameters
- p
-
a T=> Boolean function (might be another predicate)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
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.
The tryMap function for Predicate. Note that for operators such as >, Predicate[U]
The tryMap function for Predicate. Note that for operators such as >, Predicate[U]
Type parameters
- U
-
the underlying type of the resulting Predicate
Attributes
- Returns
-
a Try[Predicate[U]
Inherited methods
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
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
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
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
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
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
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
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
fsuch thatf(x) == g(apply(x)) - Inherited from:
- Function1
Attributes
- Inherited from:
- Predicate
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
gcan be applied
Value parameters
- g
-
a function A => T1
Attributes
- Returns
-
a new function
fsuch thatf(x) == apply(g(x)) - Inherited from:
- Function1
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
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
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
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
- Inherited from:
- BasePredicate
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
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