¡@

Home 

java Programming Glossary: bothfooandbar

How to reference a generic return type with multiple bounds

http://stackoverflow.com/questions/14464226/how-to-reference-a-generic-return-type-with-multiple-bounds

So to answer your question such a syntax like this Foo Bar bothFooAndBar FooBar.getFooBar Would never be useful in practice. The reason.. know what T is. Either T is some concrete type FooAndBar bothFooAndBar FooBar. FooAndBar getFooBar T is FooAndBar Or T is an unresolved.. in its scope U extends Foo Bar void someGenericMethod U bothFooAndBar FooBar. U getFooBar T is U Another example of that class SomeGenericClass..