code: public static boolean isMatch(Class<?> []paramA, Class<?> []paramB)
    {
      if (paramA.length != paramB.length)
        return false;
      
      for (int i = paramA.length - 1; i >= 0; i--) {
        if (! paramA[i].equals(paramB[i]))
          return false;
      }
      
      return true;
    }
docs: Tests if parameters match a method's parameter types.