Skip to content
Reference > Methods

strJoin(delimiter,associator,data)

Definition

String strJoin(String delimiter, String associator, Map data)

Description

Concatenates all of the data in the map into a single delimited string, such that each entry is in the format: key followed by associator followed by value. Returns that string.

Parameter Definition

Name Type Description
delimiter String The Delimiter
associator String the List to concatenate
data Map

Examples

1
2
3
String r1 = strJoin(",","=",new Map("when", "now", "where", "here")); // r1 == when=now,where=here
String r2 = strJoin(";"," is ",new Map("firstName", "Eric", "lastName", "Johns")); // r2 == firstName is Eric;lastName is Johns
Object r3 = strJoin(null,null,new Map("what", "now")); // r3 == null