Android Utililty Methods Array Type Check

List of utility methods to do Array Type Check

Description

The list of methods to do Array Type Check are organized into topic(s).

Method

booleanisSameType(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());
booleanisArray(Object aObject)
is Array
return (aObject != null) && aObject.getClass().isArray();