Predicate

interface Predicate<T>

Represents a predicate (boolean-valued function) of one argument.

Functions

Link copied to clipboard
open fun and(other: Predicate<in T>): Predicate<T>
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
Link copied to clipboard
open fun negate(): Predicate<T>
Returns a predicate that represents the logical negation of this predicate.
Link copied to clipboard
open fun or(other: Predicate<in T>): Predicate<T>
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
Link copied to clipboard
abstract fun test(arg: T): Boolean
Evaluates this predicate on the given argument.