ToString

See javadoc - uk.gov.gchq.koryphe.impl.function.ToString

Available since Koryphe version 1.0.0

toString is simply called on each input. If the input is null, null is returned.

Examples

Object to string

Java
JSON
Full JSON
Python
final ToString function = new ToString();
{
  "class" : "ToString"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.ToString"
}
g.ToString()

Input type:

java.lang.Object

Example inputs:

Input TypeInputResult TypeResult
java.lang.Integer1java.lang.String1
java.lang.Double2.5java.lang.String2.5
java.lang.Stringabcjava.lang.Stringabc
nullnull

results matching ""

    No results matching ""