在遍历键时如何完成更新条目
Map<String,List<SObject>> Map1=new HashMap<String,List<SObject>>();
Map<String,List<SObject>> Map2=new HashMap<String,List<SObject>>();
for(String name: Map1.keyset()){
//do something
for(SObject obj1: Map1.get(name)){
//iterate through the list of SObjects returned for the key
for(SObject obj2 : Map2.get(name)){
//iterate through the list of SObject values for the keys and update or remove the values related to the key
}
}
}