public static < T , R > R firstNonNull ( T input , Function < T , R > function , Function < T , R > ... functions ) { return firstNonNull ( f -> f . apply ( input ) , Stream . concat ( Stream . of ( function ) , Stream . of ( functions ) ) ) ; }
Gets first result of set of function which is not null .