public static < T1 , T2 > BiPredicate < T1 , T2 > predicate ( BiFunction < T1 , T2 , Boolean > function ) { dbc . precondition ( function != null , "cannot adapt a null function" ) ; return function :: apply ; }
Adapts a binary function to a binary predicate