com.phasmidsoftware.lascala.predicate
Members list
Type members
Classlikes
"Always" sub-class of BasePredicate which evaluates to true. //@tparam T
"Always" sub-class of BasePredicate which evaluates to true. //@tparam T
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass BasePredicate[Any]trait Predicate[Any]trait Any => Try[Boolean]class Objecttrait Matchableclass AnyShow all
- Self type
-
Always.type
"And" sub-class of BasePredicate yielding the conjunction of p1 and p2.
"And" sub-class of BasePredicate yielding the conjunction of p1 and p2.
Type parameters
- T
-
the underlying type of the Predicate
Value parameters
- p1
-
a function T=>Try[Boolean] which will typically be a Predicate; this function will always be evaluated
- p2
-
a function T=>Try[Boolean] which will typically be a Predicate; this function may not be evaluated
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
abstract class which partially implements Predicate[T]
abstract class which partially implements Predicate[T]
Type parameters
- T
-
the underlying type of the Predicate
Value parameters
- name
-
the name of this predicate
Attributes
- Supertypes
- Known subtypes
- Self type
"EQ" sub-class of BasePredicate which evaluates to true if x = y where x is the parameter passed into the apply method.
"EQ" sub-class of BasePredicate which evaluates to true if x = y 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
- y
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"Func" sub-class of BasePredicate which evaluates to true if p(x) where x is the parameter passed into the apply method.
"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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"GE" sub-class of BasePredicate which evaluates to true if x >= y where x is the parameter passed into the apply method.
"GE" sub-class of BasePredicate which evaluates to true if x >= y 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
- y
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"GT" sub-class of BasePredicate which evaluates to true if x > y where x is the parameter passed into the apply method.
"GT" sub-class of BasePredicate which evaluates to true if x > y 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
- y
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
- Self type
-
GT[T]
"In" sub-class of BasePredicate which evaluates to true if as contains x where x is the parameter passed into the apply method.
"In" sub-class of BasePredicate which evaluates to true if as contains x where x is the parameter passed into the apply method.
Type parameters
- A
-
the underlying type of the sequence
Value parameters
- as
-
a sequence of A values
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[A]trait Predicate[A]trait A => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"InBounds" sub-class of BasePredicate which evaluates to true if x >= min & x <= max where x is the parameter passed into the apply method.
"InBounds" sub-class of BasePredicate which evaluates to true if x >= min & x <= max where x is the parameter passed into the apply method.
Type parameters
- T
-
the type of both min and max, and also the underlying type of the resulting Predicate
Value parameters
- max
-
a T expression
- min
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"InRange" sub-class of BasePredicate[Int] which evaluates to true if r contains x where x is the parameter passed into the apply method.
"InRange" sub-class of BasePredicate[Int] which evaluates to true if r contains x where x is the parameter passed into the apply method.
Value parameters
- r
-
a Range
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[Int]trait Predicate[Int]trait Int => Try[Boolean]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[Any]trait Predicate[Any]trait Any => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"LE" sub-class of BasePredicate which evaluates to true if x <= y where x is the parameter passed into the apply method.
"LE" sub-class of BasePredicate which evaluates to true if x <= y 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
- y
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"LT" sub-class of BasePredicate which evaluates to true if x < y where x is the parameter passed into the apply method.
"LT" sub-class of BasePredicate which evaluates to true if x < y 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
- y
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"Matches" sub-class of BasePredicate which evaluates to true if f.isDefinedAt(x) and f(x) where x is the parameter passed into the apply method.
"Matches" sub-class of BasePredicate which evaluates to true if f.isDefinedAt(x) and f(x) where x is the parameter passed into the apply method.
Type parameters
- T
-
the underlying type of the Predicate
Value parameters
- f
-
a T => Boolean partial function
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"NE" sub-class of BasePredicate which evaluates to true if x != y where x is the parameter passed into the apply method.
"NE" sub-class of BasePredicate which evaluates to true if x != y 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
- y
-
a T expression
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"Never" sub-class of BasePredicate which evaluates to false. //@tparam T
"Never" sub-class of BasePredicate which evaluates to false. //@tparam T
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass BasePredicate[Any]trait Predicate[Any]trait Any => Try[Boolean]class Objecttrait Matchableclass AnyShow all
- Self type
-
Never.type
"Or" sub-class of BasePredicate yielding the disjunction of p1 and p2.
"Or" sub-class of BasePredicate yielding the disjunction of p1 and p2.
Type parameters
- T
-
the underlying type of the Predicate
Value parameters
- p1
-
a function T=>Try[Boolean] which will typically be a Predicate; this function will always be evaluated
- p2
-
a function T=>Try[Boolean] which will typically be a Predicate; this function may not be evaluated
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
"Pred" sub-class of BasePredicate which evaluates to true if p(f(x)) where x is the parameter passed into the apply method.
"Pred" sub-class of BasePredicate which evaluates to true if p(f(x)) where x is the parameter passed into the apply method.
Type parameters
- T
-
the input type of the function f
- V
-
the output type of the function f and the underlying type of the resulting Predicate
Value parameters
- f
-
a T=>V function
- p
-
a Predicate
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass BasePredicate[T]trait Predicate[T]trait T => Try[Boolean]class Objecttrait Matchableclass AnyShow all
This trait extends the function class T=>Try[Boolean]. Predicates are intended to combine and form rules. At present, a Predicate is a Functor but not a Monad.
This trait extends the function class T=>Try[Boolean]. Predicates are intended to combine and form rules. At present, a Predicate is a Functor but not a Monad.
Created by robinhillyard on 5/24/16.
Attributes
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all