StringConcat
See javadoc - uk.gov.gchq.koryphe.impl.binaryoperator.StringConcat
Available since Koryphe version 1.0.0
Concatenates 2 strings
Examples
String concat with separator
Java
JSON
Full JSON
final StringConcat stringConcat = new StringConcat();
stringConcat.setSeparator(" ");{
"class" : "StringConcat",
"separator" : " "
}{
"class" : "uk.gov.gchq.koryphe.impl.binaryoperator.StringConcat",
"separator" : " "
}Input type:
java.lang.String
Example inputs:
| Input Type | Inputs | Result Type | Result |
|---|---|---|---|
| java.lang.String | hello and world | java.lang.String | hello world |
| java.lang.String | abc and null | java.lang.String | abc |
| null and null | null |
String concat with default separator
Java
JSON
Full JSON
final StringConcat stringConcat = new StringConcat();{
"class" : "StringConcat",
"separator" : ","
}{
"class" : "uk.gov.gchq.koryphe.impl.binaryoperator.StringConcat",
"separator" : ","
}Input type:
java.lang.String
Example inputs:
| Input Type | Inputs | Result Type | Result |
|---|---|---|---|
| java.lang.String | hello and world | java.lang.String | hello,world |
| java.lang.String | abc and null | java.lang.String | abc |
| null and null | null |