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