public static < T1 , T2 , T3 , R > TriConsumer < T1 , T2 , T3 > consumer ( TriFunction < T1 , T2 , T3 , R > function ) { dbc . precondition ( function != null , "cannot adapt a null function" ) ; return function :: apply ; }
Adapts a ternary function to a ternary consumer .