public static < T , U , V > Consumer < Triple < T , U , V > > tupled ( TriConsumer < T , U , V > consumer ) { dbc . precondition ( consumer != null , "cannot apply a triple to a null consumer" ) ; return triple -> consumer . accept ( triple . first ( ) , triple . second ( ) , triple . third ( ) ) ; }
Adapts a ternary consumer to an consumer accepting a triple .