public static < T > Predicate < T > predicate ( Function < T , Boolean > function ) { dbc . precondition ( function != null , "cannot adapt a null function" ) ; return function :: apply ; }
Adapts a function to a predicate .