ComparisonPredicate made generic.