title: Java interface extends Comparable
body: <p>I want to have an interface <code>A</code> parameterised by <code>T</code> <code>A&lt;T&gt;</code>, and also want every class that implements it to also implement <code>Comparable</code> (with <code>T</code> and its subtypes). It would seem natural to write <code>interface A&lt;T&gt; extends Comparable&lt;? extends T&gt;</code>, but that doesn't work. How should I do it then?</p>