Map<String,List<List<Object>>> from = context.getData();
for (Map.Entry<String, List<List<Object>>> entry : from.entrySet()) {
String key = entry.getKey();
- Object existing = getValue(key);
- Object newValue = context.getValue(key);
- // Do not merge duplicates!
- if (newValue != null && newValue.equals(existing))
- continue;
- List<List<Object>> rows = ensureRowsAvailable(entry.getKey());
- rows.addAll(entry.getValue());
+ putValue(key, context.getValue(key));
}
}
return this;