title: Generics in Java
body: <p>Is there any shorthand way of defining and using generic definitions without having to keep repeating a particular generic description such that if there is a change I don't have to change all definitions/usages though out the codebase for example is something like this possible:</p>
  
  <pre><code>Typedef myGenDef = &lt; Object1, Object2 &gt;;
  
  HashMap&lt; myGenDef &gt; hm = new HashMap&lt; myGenDef &gt;();
  
  for (Entry&lt; myGenDef &gt; ent : hm..entrySet())
  {
  .
  .
  .
  }
  </code></pre>