public static < T , R > Function < T , R > ignore ( Supplier < R > supplier , Class < T > ignored ) { dbc . precondition ( supplier != null , "cannot ignore parameter of a null supplier" ) ; return first -> supplier . get ( ) ; }
Adapts a supplier to a function by ignoring the passed parameter .