public static <T, R> List<R> map(Iterable<T> data, Function<T, R> function) {
        List<R> list = new ArrayList<>();
        if (!Utils.isEmpty(data)) {
            for (T item : data) {
                list.add(function.apply(item));
            }
        }
        return list;
    }
public static < T , R > List < R > map ( Iterable < T > data , Function < T , R > function ) { List < R > list = new ArrayList < > ( ) ; if ( ! Utils . isEmpty ( data ) ) { for ( T item : data ) { list . add ( function . apply ( item ) ) ; } } return list ; }
Map function