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 Type | Input | Result Type | Result |
---|---|---|---|
java.lang.Integer | 1 | java.lang.String | 1 |
java.lang.Double | 2.5 | java.lang.String | 2.5 |
java.lang.String | abc | java.lang.String | abc |
null | null |