Identity
See javadoc - uk.gov.gchq.koryphe.impl.function.Identity
Available since Koryphe version 1.0.0
Just returns the input.
Examples
Identity 2
Java
JSON
Full JSON
Python
final Identity function = new Identity();
{
"class" : "Identity"
}
{
"class" : "uk.gov.gchq.koryphe.impl.function.Identity"
}
g.Identity()
Input type:
java.lang.Object
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
java.lang.Integer | 6 | java.lang.Integer | 6 |
java.lang.Double | 6.1 | java.lang.Double | 6.1 |
java.lang.String | input1 | java.lang.String | input1 |
java.util.ArrayList | [1, 2, 3] | java.util.ArrayList | [1, 2, 3] |
null | null |