PairMatchingPredicate
public class PairMatchingPredicate<T> : Predicate where T : Equatable
The PairMatchingPredicate
class is used to evaluate whether a given pair of values match.
-
Declaration
Swift
public typealias InputType = (T?, T?)
-
Creates and returns a new
PairMatchingPredicate
instance.Declaration
Swift
public init()
-
Returns a
Boolean
value that indicates whether a given pair of values match.Declaration
Swift
public func evaluate(with input: InputType) -> Bool
Parameters
input
The input against which to evaluate the receiver.
Return Value
true
if the values in the pair match, otherwisefalse
.