Skip to main content
Skip table of contents

FORMAT_SPACE

Versionshinweise

24.1

Code

GROOVY
ScriptUtils.FORMAT_SPACE

Beschreibung

Konstante für das Textformat mit Leerzeichen und Zeilenumbrüchen char(13)char(10).

Beispiele

GROOVY
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 spaces [" + ScriptUtils.formatAsString(map, ScriptUtils.FORMAT_SPACE) + "]");

Ausgabe
[ERROR] formatted Map spaces [
   map1_param2: 2.0
   map1_param1: mapVal1
   map1_param4:       
      0: Value1,
      1: 1,
      2: NULL value
   map1_param3: NULL value]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.