title: How to declare HashMap with different types?
body: <p>I have a function, declared like this:</p>
  
  <pre><code>public synchronized void update(HashMap&lt;String, Comparable&gt; data)
  </code></pre>
  
  <p>data contains strings and ints, but the Comparable gives a warning</p>
  
  <pre><code>Comparable is a raw type. References to generic type Comparable&lt;T&gt; should be 
   parameterized
  </code></pre>
  
  <p>As I'm not overly found of warnings, question is, is there a correct way, I don't want to suppress the warning.</p>
  
  <p>Thank in advance!
  Marcus</p>