I have a class Foo
with subclass SubFoo
, a collection class FooListing
.
I want to create a generic FooListing<T>
where T
is either Foo
or a subclass of Foo
From the wording of the documentation (under 'Wildcards'), it sounds like
public class FooListing<T extends Foo> { ... }
...would let me use FooListing<SubFoo>
, but not FooListing<Foo>
, is this correct?