Question marks in Java generics.
- by gnucom
I tried to make sure this wasn't a duplicate post, sorry if I was blind.
This is a small snippet of code taken from some of the examples that accompany the Stanford Parser. I've been developing in Java for about 4 years, but have never had a very strong understanding of what this style of code is supposed to indicate.
List<? extends HasWord> wordList = toke.tokenize();
I'm not worried about the details of the code. What I'm confusing about is what exactly the generic expression is supposed to convey, in English.
Can someone explain this to me?
Thanks!