Predicate<T> class
Compose functions that given a generic value T
return a bool
.
Constructors
Properties
Methods
-
and(
Predicate< T> predicate) → Predicate<T> -
Compose this Predicate with the given
predicate
using AND. -
call(
T t) → bool -
Run the predicate and extract its bool value given
t
. -
contramap<
A> (T fun(A a)) → Predicate< A> -
Apply
fun
to the value of thisPredicate<T>
and return a newPredicate<A>
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
or(
Predicate< T> predicate) → Predicate<T> -
Compose this Predicate with the given
predicate
using OR. -
toString(
) → String -
A string representation of this object.
inherited
-
xor(
Predicate< T> predicate) → Predicate<T> -
Compose this Predicate with the given
predicate
using XOR.
Operators
-
operator &(
Predicate< T> predicate) → Predicate<T> -
Compose this Predicate with the given
predicate
using AND. -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator ^(
Predicate< T> predicate) → Predicate<T> -
Compose this Predicate with the given
predicate
using XOR. -
operator |(
Predicate< T> predicate) → Predicate<T> -
Compose this Predicate with the given
predicate
using OR. -
operator ~(
) → Predicate< T> -
Build a Predicate that returns NOT (!) of the given
predicate
.