Example method signature description

Let's say we want to describe a few search methods from the javax.naming.directory DirContext. The method signature might look like the following:

package javax.naming.directory;


import javax.naming.*;

public class DirContext {  
   public NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls cons)
      throws NamingException;

   public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons) 
      throws NamingException;

}