title: Java - Can a hashmap have 4 generic parameters instead of 2?
body: <p>This may be difficult to explain, but here goes:</p>
  
  <p>I want to store 3 integers and a String to a Hashmap, so I can retrieve data from the map, but it turns out that hashmaps only allow 2 generic parameters instead of 4.</p>
  
  <p>For example: <code>HashMap &lt;String&gt; &lt;Integer&gt; &lt;Integer&gt; &lt;Integer&gt;</code> (what I want to do)</p>
  
  <p>but you can only use 2 parameters, as it seems: <code>HashMap &lt;String&gt; &lt;Integer&gt;</code>.</p>
  
  <p>My best guess is that my idea cannot be done, if so please list the alternatives to handling something like this.</p>