AnyPredicate
public class AnyPredicate<T> : Predicate
A type-erased Predicate
.
-
A type that provides information about what kind of values the predicate can be evaluated with.
Declaration
Swift
public typealias InputType = T
-
Returns a
Boolean
value that indicates whether a given input matches the conditions specified by the receiver.Declaration
Swift
public func evaluate(with input: InputType) -> Bool
Parameters
input
The input against which to evaluate the receiver.
Return Value
true
if input matches the conditions specified by the receiver,false
otherwise.