title: Java generic field declaration
body: <p>In a class without generic types I want to declare a rather complex generic field similar to these:</p>
  
  <pre><code>public class Client {
      private Map&lt;Class&lt;T extends Serializable&gt;, List&lt;Consumer&lt;S extends T&gt;&gt;&gt; classToConsumerTry1;
  
      private &lt;T extends Serializable, S extends T&gt; Map&lt;Class&lt;T&gt;, List&lt;Consumer&lt;S&gt;&gt;&gt; classToConsumerTry2;
  }
  </code></pre>
  
  <p>promblem is the java compiler won't let me :)</p>
  
  <p>So my question is how do I correctly introduce T and S without adding types to my class Client.</p>
  
  <p>My goal is to enforce the <code>Class</code> being a subtype of <code>Serializable</code> and the <code>Consumer</code> being a subtype of the class you chose for <code>Class</code>.</p>