Sunday 18 August 2013

notes about Generics

If I find something worth to mention and memorize about generics, I'll post it here.

Stuff like:
  • List<String> is (captureable by) a List<?>
  • List<List<String>> is NOT (captureable by) a List<List<?>>
  • List<List<String>> IS (captureable by) a List<? extends List<?>>
  • http://stackoverflow.com/a/3547372/575659

    No comments:

    Post a Comment