File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Java in General
Generics :Why type variables are not bound
Joined: Sep 12, 2005
Apr 16, 2008 00:38:00
Can anyone please let me know why Type variables are not bound?
Can't I write List<Number extends Comparable>?
How can I make sure that only List of Numbers which extends comparable should be residing in particular list?
Chop your own wood, and it will warm you twice. - Henry Ford
Joined: Sep 17, 2006
Apr 16, 2008 16:02:00
What do you mean by bound?
and see if that helps
I agree. Here's the link:
- it saves me about five hours per week
subject: Generics :Why type variables are not bound
Problem with generics and LinkedList
I don't see an advantage of Generics of Java 5 here!
Generics, multiple bounding types and efficiency
Good Reference on Generics
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013