title: Is there a best practice for writing maps literal style in Java?
body: <p>In short, if you want to write a map of e.g. constants in Java, which in e.g. Python and Javascript you would write as a literal, </p>
  
  <pre><code>T&lt;String,String&gt; CONSTANTS =
  {
      "CONSTANT_NAME_0": CONSTANT_VALUE_0 ,
      "CONSTANT_NAME_1": CONSTANT_VALUE_1 ,
      "CONSTANT_NAME_2": CONSTANT_VALUE_2 ,
      //...
  } ;
  </code></pre>
  
  <p>is there a <code>Class</code> or any preset <code>Object</code> that you can use for writing a data structure like that?</p>