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 TypeInputResult TypeResult
java.lang.Integer6java.lang.Integer6
java.lang.Double6.1java.lang.Double6.1
java.lang.Stringinput1java.lang.Stringinput1
java.util.ArrayList[1, 2, 3]java.util.ArrayList[1, 2, 3]
nullnull

results matching ""

    No results matching ""