title: Iterating over google multimap passed as a parameter
body: <p>I have the following multimap:</p>
  
  <pre><code>private ListMultimap&lt;String, int[]&gt; terrainMap = ArrayListMultimap.create();
      {
          terrainMap.put("Terrain.Ground", new int[] {0,100,300,0});
          terrainMap.put("Terrain.Ground", new int[] {300,200,400,0});
          terrainMap.put("Terrain.Ground", new int[] {400,250,800,0});
          terrainMap.put("Terrain.Ground", new int[] {800,500,810,0});
          terrainMap.put("Terrain.Ground", new int[] {100,200,150,150});
          terrainMap.put("Terrain.Ground", new int[] {500,400,600,350});
      };
  </code></pre>
  
  <p>When I iterate through this in the same class, everything works as expected:</p>
  
  <pre><code>for (Map.Entry&lt;String, int[]&gt; entry : terrainMap.entries())
  {
  
  }
  </code></pre>
  
  <p>However, when I pass the map as a parameter of some other class method, I get an error <code>incompatible types: Object cannot be converted to entry&lt;String, int[]&gt;</code></p>
  
  <pre><code>otherClassMethod(terrainMap);
  </code></pre>
  
  <p>And the method looks like this:</p>
  
  <pre><code>public void otherClassMethod(ListMultimap terrainMap)
  {
  
  }
  </code></pre>
  
  <p>What's wrong?</p>