title: Why does Java Collections have helpers for 0 or 1 but not more elements?
body: <p>If I want an empty map or a one element map, Java Collections has a method for that. Why is there no method for more than one element? What's the best way to create a static final map with 2 elements in it? I know I can do something like:</p>
  
  <pre><code>private static final Map&lt;String, String&gt; MAP = new HashMap&lt;String, String&gt;() {
      { put("a", "b"); put("c", "d"); }
  };
  </code></pre>
  
  <p>But then Eclipse complains about the serialVersionUID...</p>