public static < T , R > List < R > buildNewList ( Collection < T > collection , Function < T , R > transformFunction ) { return collection . stream ( ) . map ( transformFunction ) . collect ( Collectors . toList ( ) ) ; }
Build new list list .