ToTuple

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

Available since Koryphe version 1.8.0

Converts an Object into a Tuple

Examples

To tuple

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

Input type:

java.lang.Object

Example inputs:

Input TypeInputResult TypeResult
java.util.ArrayList[1, 2, 3, 4][java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer][1, 2, 3, 4]
[Ljava.lang.Integer;[1, 2, 3, 4][java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer][1, 2, 3, 4]
java.util.HashMap{A=1, B=2, C=3}uk.gov.gchq.koryphe.tuple.MapTuple[1, 2, 3]

results matching ""

    No results matching ""