Java - Syntax Question: What is <? super T>

Posted by aloh on Stack Overflow See other posts from Stack Overflow or by aloh
Published on 2010-05-13T14:28:39Z Indexed on 2010/05/13 14:34 UTC
Read the original article Hit count: 220

Filed under:

I'm having trouble understanding the following syntax:

public class SortedList< T extends Comparable< ? super T> > extends LinkedList< T >

I see that class SortedList extends LinkedList. I just don't know what

T extends Comparable< ? super T>

means.

My understanding of it so far is that type T must be a type that implements Comparable...but what is "< ? super T >"?

© Stack Overflow or respective owner

Related posts about java