¡@

Home 

java Programming Glossary: fooandbar

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

you don't usually need to specify them like this FooBar. FooAndBar getFooBar But even when T is inferred to be FooAndBar that's.. FooAndBar getFooBar But even when T is inferred to be FooAndBar that's really whats happening behind the scenes. So to answer.. answer your question such a syntax like this Foo Bar bothFooAndBar FooBar.getFooBar Would never be useful in practice. The reason..