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