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 TypeInputResult TypeResult
java.lang.Stringa string of some kindjava.lang.StringmyPrefixa string of some kind
java.lang.Stringjava.lang.StringmyPrefix
nullnull
java.lang.Long54ClassCastException: java.lang.Long cannot be cast to java.lang.String

results matching ""

    No results matching ""