title: Parse Map from properties files
body: <p>This is a follow-up to my previous question (found <a href="https://stackoverflow.com/questions/1380156/java-properties-properties-files-vs-xml">here</a>). My properties files so far consists of simple key-value pairs, like ints and Strings. I would now like to use it to place some more advanced structures in it, more specifically I need a Map&lt;A, Integer> where A is a class i have defined, for example like so:</p>
  
  <pre><code>foo=bar,5;baz,10
  </code></pre>
  
  <p>Is this possible? If so, how should I format the file and parse the map, respectively? </p>
  
  <p>Are there perhaps better ways to solve this?</p>