public static < T > BooleanSupplier curry ( Predicate < T > predicate , T value ) { dbc . precondition ( predicate != null , "cannot bind parameter of a null predicate" ) ; return ( ) -> predicate . test ( value ) ; }
Partial application of the parameter to a predicate .