Class ArgUtils


  • public final class ArgUtils
    extends Object
    Utility class for transforming the list of arguments passed to constructors of exceptions.
    • Method Detail

      • flatten

        public static Object[] flatten​(Object[] array)
        Transform a multidimensional array into a one-dimensional list.
        Parameters:
        array - Array (possibly multidimensional).
        Returns:
        a list of all the Object instances contained in array.