private static boolean hasCompatibleConstructor ( Class < ? > [ ] paramTypes , Class < ? > [ ] constructorTypes ) { for ( int i = 0 ; i < paramTypes . length ; i ++ ) { if ( constructorTypes [ i ] . isAssignableFrom ( paramTypes [ i ] ) ) { return true ; } } return false ; }
Check if there is a compatible constructor for the types .