List of utility methods to do Array Type Check
boolean | isSameType(Object array1, Object array2) Checks whether two arrays are the same type taking into account multi-dimensional arrays. if (array1 == null || array2 == null) { throw new IllegalArgumentException("The Array must not be null"); return array1.getClass().getName() .equals(array2.getClass().getName()); |
boolean | isArray(Object aObject) is Array return (aObject != null) && aObject.getClass().isArray();
|