title: Problem in accessing elements from google HashMultimap
body: <p>I am using below code to get &amp; process value from google HashMultimap</p>
  
  <pre><code>    HashMultimap hmm = new HashMultimap();
      HashMultimap hmm2 = new HashMultimap();
      Element ele;
  :
      hmm2.put("name","Amit");
      hmm.put("Amit",ele);
      hmm.put("rohit",hmm2);
   :   
      Iterator itr =  hmm.keys().iterator();
      String ky = (String) itr.next();
      System.out.println(hmm.get(ky));
      ky = (String) itr.next();
      System.out.println(hmm.get(ky));
  </code></pre>
  
  <p>In above code, if map element(or entry) is Element type then i want to do some operation. If it is HashMultimap type then do some other operation. How can i check and pass the object to another function.</p>