public static boolean isArray(Type type) {
        return (type instanceof GenericArrayType) || (type instanceof Class<?> && ((Class<?>) type).isArray());
    }
public static boolean isArray ( Type type ) { return ( type instanceof GenericArrayType ) || ( type instanceof Class < ? > && ( ( Class < ? > ) type ) . isArray ( ) ) ; }
Determines whether the given type is an array type.

@param type the given type
@return true if the given type is a subclass of java.lang.Class or implements GenericArrayType