public static < T > Consumer < T > ignore ( Runnable runnable , Class < T > ignored ) { dbc . precondition ( runnable != null , "cannot ignore parameter of a null runnable" ) ; return first -> runnable . run ( ) ; }
Adapts a runnable to an consumer by ignoring the parameter .