public abstract class TestUtil
extends java.lang.Object
Constructor and Description |
---|
TestUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
sameElements(T[] array1,
T[] array2)
Checks if two arrays contain the same elements.
|
public static <T> boolean sameElements(T[] array1, T[] array2)
array1
- The first array.array2
- The second array.true
if the two arrays contain the same elements,
with the same counts, regardless of their order, and
false
otherwise.