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 TypeInputsResult TypeResult
java.lang.Stringhello and worldjava.lang.Stringhello world
java.lang.Stringabc and nulljava.lang.Stringabc
null and nullnull

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 TypeInputsResult TypeResult
java.lang.Stringhello and worldjava.lang.Stringhello,world
java.lang.Stringabc and nulljava.lang.Stringabc
null and nullnull

results matching ""

    No results matching ""