Concat
See javadoc - uk.gov.gchq.koryphe.impl.function.Concat
Available since Koryphe version 1.0.0
Objects are concatenated by concatenating the outputs from calling toString on each object.
Examples
Concat objects
Java
JSON
Full JSON
Python
final Concat function = new Concat();
{
"class" : "Concat",
"separator" : ","
}
{
"class" : "uk.gov.gchq.koryphe.impl.function.Concat",
"separator" : ","
}
g.Concat(
separator=","
)
Input type:
java.lang.Object, java.lang.Object
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
[java.lang.String, java.lang.String] | [foo, bar] | java.lang.String | foo,bar |
[java.lang.String, ] | [foo, null] | java.lang.String | foo |
[java.lang.String, java.lang.String] | [foo, ] | java.lang.String | foo, |
[java.lang.String, java.lang.Double] | [foo, 1.2] | java.lang.String | foo,1.2 |
[ ,java.lang.String] | [null, bar] | java.lang.String | bar |
[java.lang.Integer, java.lang.Integer] | [1, 2] | java.lang.String | 1,2 |