This content has been marked as final. Show 2 replies
I'm a num-nuts. It looks like I can just use <? extends Widget> everywhere. Ugly, but functional. Sorry for wasting time.
This case falls back to the same context where you declare a list using a <? super ... >
An item from this list cannot be safely assigned to a Widget variable without an explicit cast.
List<? super Widget> list = ...
I see no much sense in declaring an iterator variable as Iterator<? super Widget> because you cannot "add" anything to it, just retrieve.