¡@

Home 

java Programming Glossary: foobarcontainer.unwrap

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

that it is some type within the bounds extends Foo Bar . FooBarContainer.unwrap unknownFooBarContainer T is a wildcard capture As I noted calling.. assign that reference to Foo or Bar but not both Foo foo FooBarContainer.unwrap unknownFooBarContainer Bar bar FooBarContainer.unwrap unknownFooBarContainer.. foo FooBarContainer.unwrap unknownFooBarContainer Bar bar FooBarContainer.unwrap unknownFooBarContainer If for some reason unwrap were expensive..