[jboss-user] [JBoss Cache: Core Edition] - Re: parametrizing

mircea.markus do-not-reply at jboss.com
Wed Jun 4 09:51:39 EDT 2008


anonymous wrote : do you mean, if I have Node<A,B>, then Cache must be <A,B> too, and it's CacheFactory<A,B> ? 
on the short - yes

anonymous wrote : It sound's like a limitation and means, I need use entire cache only for A,B...
  | Please, be forgiving to my ignorance... :) 
It is not a limitation at all, as you can declare both K and V of type Object. It comes with all the benefits Java Generics brings :)
(conceptually, the Cache is a collection of objects. Much nicer working with parametrized collections.)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155685#4155685

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155685



More information about the jboss-user mailing list