Class ToArray
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Object,Object[]>
-
- uk.gov.gchq.koryphe.impl.function.ToArray
-
public class ToArray extends KorypheFunction<Object,Object[]>
AToArray
is aFunction
that takes an Object and converts it to a array. If the object is already an array then it is just returned. If it is an iterable then the items will be added to a new array. Otherwise a new array is created with the single value as an item.
-
-
Constructor Summary
Constructors Constructor Description ToArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
apply(Object value)
-
Methods inherited from class uk.gov.gchq.koryphe.function.KorypheFunction
equals, hashCode
-
-