ToArray

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

Available since Koryphe version 1.6.0

Converts an Object to a List

Examples

To array

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

Input type:

java.lang.Object

Example inputs:

Input TypeInputResult TypeResult
java.lang.Stringtest[Ljava.lang.Object;[test]
null[Ljava.lang.Object;[null]
java.lang.Long30[Ljava.lang.Object;[30]
uk.gov.gchq.gaffer.types.TypeSubTypeValueTypeSubTypeValue[type=t,subType=st,value=v][Ljava.lang.Object;[TypeSubTypeValue[type=t,subType=st,value=v]]
java.util.Arrays$ArrayList[a, b, c][Ljava.lang.Object;[a, b, c]
java.util.HashSet[1, 2][Ljava.lang.Object;[1, 2]

results matching ""

    No results matching ""