public static < T1 , T2 > BiPredicate < T1 , T2 > ignore2nd ( Predicate < T1 > predicate , Class < T2 > ignored ) { dbc . precondition ( predicate != null , "cannot ignore parameter of a null predicate" ) ; return ( first , second ) -> predicate . test ( first ) ; }
Adapts a predicate to a binary predicate by ignoring second parameter .