public static < T1 , T2 , T3 > TriFunction < T1 , T2 , T3 , Void > function ( TriConsumer < T1 , T2 , T3 > adaptee ) { dbc . precondition ( adaptee != null , "cannot adapt a null consumer" ) ; return ( first , second , third ) -> { adaptee . accept ( first , second , third ) ; return null ; } ; }
Adapts a ternary consumer to a ternary function .