Java class with 2 generic parameters
<p>I'm trying to crate my own thread safe event handling but I get <code>E cannot be resolved to a type</code> error on class decleration line below. How can I fix this?</p>

<p><strong>Observers.java</strong></p>

<pre><code>public final class Observers&lt;T extends EventHandler&lt;E&gt;&gt; {

    private CopyOnWriteArrayList&lt;T&gt; mListeners = new CopyOnWriteArrayList&lt;T&gt;();

    public interface EventHandler&lt;E&gt; {
       public void HandleEvent(Object sender, E e);
    }

    /*...*/

    public void dispatchEvent(Object sender, E args) {
        /*...*/
    }
}
</code></pre>

<p><strong>EventHandler.java</strong>  </p>

<pre><code>public interface EventHandler&lt;E extends EventArgs&gt; {
 /* ... */
}
</code></pre>
