StringAppend
See javadoc - uk.gov.gchq.koryphe.impl.function.StringAppend
Available since Koryphe version 1.9.0
Appends a provided suffix to a string.
Examples
Prepend to strings
Java
JSON
Full JSON
Python
final StringAppend function = new StringAppend("mySuffix");
{
"class" : "StringAppend",
"suffix" : "mySuffix"
}
{
"class" : "uk.gov.gchq.koryphe.impl.function.StringAppend",
"suffix" : "mySuffix"
}
g.StringAppend(
suffix="mySuffix"
)
Input type:
java.lang.String
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
java.lang.String | a string of some kind | java.lang.String | a string of some kindmySuffix |
java.lang.String | java.lang.String | mySuffix | |
null | null | ||
java.lang.Long | 54 | ClassCastException: java.lang.Long cannot be cast to java.lang.String |