Here you can find the source of removeGeneric( List
public static <T> List<Map<String, Object>> removeGeneric( List<Map<String, T>> list)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Main { public static <T> List<Map<String, Object>> removeGeneric( List<Map<String, T>> list) { if (list == null) { return null; }//w ww .j a v a2 s . c o m List<Map<String, Object>> result = new ArrayList<Map<String, Object>>(); for (int i = 0; i < list.size(); i++) { Map<String, T> map = list.get(i); Map<String, Object> newMap = new HashMap<String, Object>(); newMap.putAll(map); result.add(newMap); } return result; } }