A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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:
subject: Generics :Why type variables are not bound
I don't see an advantage of Generics of Java 5 here!
Problem with generics and LinkedList
Good Reference on Generics
Generics, multiple bounding types and efficiency
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013