public static Predicate < String > ant ( final String antPattern ) { return new Predicate < String > ( ) { @ Override public boolean test ( String input ) { AntPathMatcher matcher = new AntPathMatcher ( ) ; return matcher . match ( antPattern , input ) ; } } ; }
Predicate that evaluates the supplied ant pattern