- array1
- the first Object array.
- array2
- the second Object array.
Documentation for this section has not yet been entered.
Returns true if the two given arrays are deeply equal to one another. Unlike the method equals(Object[] array1, Object[] array2), this method is appropriate for use for nested arrays of arbitrary depth.
Two array references are considered deeply equal if they are both null, or if they refer to arrays that have the same length and the elements at each index in the two arrays are equal.
Two null elements element1 and element2 are possibly deeply equal if any of the following conditions satisfied:
element1 and element2 are both arrays of object reference types, and Arrays.deepEquals(element1, element2) would return true.
element1 and element2 are arrays of the same primitive type, and the appropriate overloading of Arrays.equals(element1, element2) would return true.
element1 == element2
element1.equals(element2) would return true.
Note that this definition permits null elements at any depth.
If either of the given arrays contain themselves as elements, the behavior of this method is uncertain.