public static < T > Function < T , Boolean > forPredicate ( Predicate < T > predicate ) { return new PredicateFunction < T > ( predicate ) ; }
Creates a function that returns the same boolean output as the given predicate for all inputs .