Good intro to using the Generics system in JDK1.5+ at JavaPro today.
Short summation: Great feature, FUGLY syntax.
The whole thing really boils down to letting the compiler create Class specific versions of more generic classes without your having to code a wrapper that type checks. IE:
List<? extends Number> ref = new LinkedList<Integer>();
gives you a LinkedList that will only accept Integer class types.
Chatter
1 sec ago
2 days 13 hours ago
4 days 9 hours ago
6 days 6 hours ago
2 weeks 17 hours ago
2 weeks 4 days ago
2 weeks 4 days ago
2 weeks 4 days ago
2 weeks 6 days ago
2 weeks 6 days ago