public static < T1 , T2 > BiConsumer < T1 , T2 > ignore1st ( Consumer < T2 > consumer , Class < T1 > ignored ) { dbc . precondition ( consumer != null , "cannot ignore parameter of a null consumer" ) ; return ( first , second ) -> consumer . accept ( second ) ; }
Adapts an consumer to a binary consumer by ignoring the first parameter .