public <E extends Foo> List<E> getResult(String s);
where Foo is my own class.
Foo
What is the return type of this method? Why does it seem to have two return types?