Java List of Elements
<p>I am making a game in Java and I am constructing a list of Items using a Hashmap.  The Key is a an abbreviation of the Item, and the value is the item name.  I want to assign an image to each item BUT also be able to call the item wherever I need. </p>

<p>The Image should be optional, while the abbreviation should and Name should be mandatory.</p>

<p>This is an example of my Hash</p>

<pre><code>public static HashMap&lt;String, String&gt; head_items = new HashMap&lt;String, String&gt;(){{
        put("DEF"       ,   "Hat");
        put("HH_CH"     ,   "Copper Helm");
        put("HH_BH"     ,   "Bronze Helm");
        put("HH_IH"     ,   "Iron Helm");
        put("HH_SH"     ,   "Steel Helm");
        put("HH_MH"     ,   "Mithril Helm");
    }};
</code></pre>

<p>Here is what I have tried</p>

<pre><code>public static HashMap&lt;HashMap&lt;String, String&gt;, List&lt;String&gt;&gt; mock_list = new HashMap&lt;HashMap&lt;String,String&gt;, List&lt;String&gt;&gt;() {{
    put(("DEF", "HAT"), "/Resources/images/sprites_16x16/player.png")
}};
</code></pre>

<p>Would I somehow be able to say
(pseudo code)</p>

<pre><code>setItem(mock_list.get("DEF")) # this would get "Hat"
setImage(mock_list.somehow_get_the_image_related_to_"DEF")
</code></pre>

<p>Is there a better way to do this?</p>

<p>Thank You</p>
