Class ToArray

  • All Implemented Interfaces:
    Function<Object,​Object[]>

    public class ToArray
    extends KorypheFunction<Object,​Object[]>
    A ToArray is a Function 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 Detail

      • ToArray

        public ToArray()