title: How can I set/get a HashMap in a YAML configuration file?
body: <p>I am making my first bukkit plugin. I would like to programmatically create a YAML file that represents a <code>HashMap</code>. How can I set and get this data structure?</p>
  
  <p>The <code>HashMap</code> parameters look like <code>&lt;Signature, Location&gt;</code>, where <code>Signature</code> is my class that stores 4 integers, and <code>Location</code> is <code>org.bukkit.Location</code></p>
  
  <p>I think I would like the YAML file to look like this, but I am not sure if this structure is best:</p>
  
  <pre><code>MyPlugin:
      ListOfData:
          - signature: [1,2,3,4]    # this is a unique set of 4 integers
            location: [122,64,254]  # non-unique set of 3 integers
          - signature: [4,2,1,2]
            location: [91,62,101]
          - signature: [3,3,1,3]
            location: [190,64,321]
  </code></pre>
  
  <p><code>Signature</code> can be modified as necessary, and I can create a wrapper for <code>Location</code> if necessary.</p>
  
  <p>Thanks!</p>