I have an interface A
, and wish to write an generic interface B
such that any T
that implements B
must also have implemented both A
and Comparable
. A
is not currently a generic interface.
Is this possible? Do I need to make A generic? I had hoped to be able to write something like:
public interface B<T implements Comparable, A> {}
But this does not seem to work... Can anyone point me in the right direction?
I do not believe this is a duplicate of the question that has been linked.