public static < T extends MatchResult , S extends MatchType > Predicate < T > equalTo ( S matchType ) { return new EqualToPredicate < T , S > ( matchType ) ; }
Generates a Predicate that only accepts the Match Results that have a Match Type equal to matchType