@ Pure public static boolean matchesParameters ( Class < ? > [ ] formalParameters , Object ... parameterValues ) { if ( formalParameters == null ) { return parameterValues == null ; } if ( parameterValues != null && formalParameters . length == parameterValues . length ) { for ( int i = 0 ; i < formalParameters . length ; ++ i ) { if ( ! isInstance ( formalParameters [ i ] , parameterValues [ i ] ) ) { return false ; } } return true ; } return false ; }
Replies if the formal parameters are matching the given values .