title: Java data structure
body: <p>I need some data structure that I can build from standard collections or using guava. So it should be mutable <code>Map&lt;Enum, V&gt;</code>.  Where <code>V</code> is pretty interesting structure.</p>
  
  <p><code>V</code> requirements:</p>
  
  <ul>
  <li>mutable</li>
  <li>sorted by comparator (with allowing elements such as compare(a, b) == 0) - these is need for iterations</li>
  <li>set (there is no such <code>a</code> and <code>b</code>, that <code>a.equals(b) == true</code>)  - optional</li>
  </ul>
  
  <p>extra optional requirement to map </p>
  
  <ul>
  <li>keys should be iterated by their natural order</li>
  </ul>
  
  <p>now it's  <code>HashMap&lt;SomeEnum, LinkedList&lt;Entity&gt;&gt;</code> with different stuff like <code>collections.sort()</code> in the code.</p>
  
  <p>Thanks.</p>