Class GenericObjToArray


  • public class GenericObjToArray
    extends Object
    • Constructor Detail

      • GenericObjToArray

        public GenericObjToArray()
    • Method Detail

      • unifyToArrayOfObjects

        public static Object[] unifyToArrayOfObjects​(Object val)
        Given an array/list-like object, infer an array of objects
        Parameters:
        val - an array/list-like object
        Returns:
        inferred array of objects
        Throws:
        IllegalArgumentException - if it cannot infer if the object is list or array