FORMAT_FLAT_LIST_MAP
Versionshinweise | 24.1 |
---|
Code
ScriptUtils.FORMAT_FLAT_LIST_MAP
Beschreibung
Zeilenformat einer Map und List, enthaltene Maps und Listen werden ebenfalls in einer Zeile dargestellt.
Beispiele
List<Object> lists = new ArrayList<>();
lists.add("Value1");
lists.add(1);
lists.add(null);
Map<String, Object> map = new HashMap<>();
map.put("map1_param1", "mapVal1");
map.put("map1_param2", 2d);
map.put("map1_param3", null);
map.put("map1_param4", lists);
ScriptUtils.error("formatted Map flat list and map [" + ScriptUtils.formatAsString(map, ScriptUtils.FORMAT_FLAT_LIST_MAP) + "]");
Ausgabe
[ERROR] formatted Map flat list and map [map1_param2: 2.0, map1_param1: mapVal1, map1_param4: Value1, 1, NULL value, map1_param3: NULL value]