FORMAT_FLAT_LIST
Versionshinweise | 24.1 |
---|
Code
ScriptUtils.FORMAT_FLAT_LIST
Beschreibung
Zeilenformat einer Liste, enthaltene 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 [" + ScriptUtils.formatAsString(map, ScriptUtils.FORMAT_FLAT_LIST) + "]");
Ausgabe
[ERROR] formatted Map flat list [
map1_param2: 2.0
map1_param1: mapVal1
map1_param4: Value1, 1, NULL value
map1_param3: NULL value]