Map map = Maps.newHashMap(); map.put(\"test\",\"123\"); map.put(\"fuyou001\",\"456\"); map.put(\"id\",1
Using an ImmutableList will force the values to be computed eagerly, and thus, no need for an extra copy afterwards. This is perhaps a more elegant solution:
list = ImmutableList.copyOf(Lists.transform(list, new Function, Object>() { @Override public Object apply(@Nullable Map input) { System.out.println("test:" + input); return input; } })); System.out.println(list);`