* @param rows rows of the table, value map will be added as the last 2 columns to the table
* @param headers headers of the table
* @return formatted table
*/
public static String renderMapValueMap(Map<String, Map<String, String>> rows, String... headers) {
Table table = createTable(headers);
if (rows != null) {
for (String key1 : rows.keySet()) {
Map<String, String> values = rows.get(key1);
if (values != null) {
for (String key2 : values.keySet()) {
table.addRow(key1, key2, values.get(key2));
}
}
}
}
return format(table);