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