Evaluate this predicate for the feature value v
.
Display this predicate, using the given feature name as a placeholder.
Map the value types of this Predicate using f
.
Map the value types of this Predicate using f
.
Remember that in order to evaluate a Predicate[U] you will need to be able to provide a valid Ordering[U] instance.
Display this predicate as a string.
Display this predicate as a string.
Negate this predicate.
Negate this predicate.
The resulting predicate will return true in cases where this predicate returns false.
A
Predicate
is a function which accepts or rejects feature values.Given a value of type
V
,apply()
will return a Boolean indicating whether the predicate matches or not.There are six types of predicates:
Predicates can be negated using
!
, and can be transformed usingmap
. Evaluating a predicate requires an Ordering, but this constraint is not enforced during construction, only whenapply()
is invoked.