ToNull
See javadoc - uk.gov.gchq.koryphe.impl.function.ToNull
Available since Koryphe version 1.5.0
Returns null on any input object.
Examples
To null
Java
JSON
Full JSON
Python
final ToNull function = new ToNull();
{
"class" : "ToNull"
}
{
"class" : "uk.gov.gchq.koryphe.impl.function.ToNull"
}
g.ToNull()
Input type:
java.lang.Object
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
java.lang.Integer | 4 | null | |
java.lang.Long | 5 | null | |
java.lang.String | aString | null | |
java.util.Arrays$ArrayList | [6, 3] | null | |
null | null |