这两个怎么变成一个
public static void replaceValues(List<Map<String, String>> list, List<Document>mappingConf) {
// List<Document>mappingConf;
for (Document document : mappingConf) {
String fromVal = document.getString(k.fromVal);
String toVal = document.getString(k.toVal);
replaceValues(list, fromVal, toVal);
}
}
public static void replaceValuesHashMap(List<HashMap<String, Object>> list, List<Document>mappingConf) {
// List<Document>mappingConf;
for (Document document : mappingConf) {
String fromVal = document.getString(k.fromVal);
String toVal = document.getString(k.toVal);
replaceValuesHashMap(list, fromVal, toVal);
}
}