incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: [jira] [Commented] (DIRECTMEMORY-43) Cache should allow key objects instead of plain string
Date Sat, 18 Feb 2012 15:08:47 GMT
Hi,

> Taking your Cache<String,String>
>
> So K = String, and V = String therefor ptr.clazz would = String not ByteBuffer , java.lang.String
doesn't extend ByteBuffer, thus this code would execute.

the would be in any case wrong - wouldn't be enough having the <V>?
there is a reason if ByteBuffer case is considered special, or not?

Simo

PS: I know that sounds strange, but my name is SimonE :) Italy is the
only country in the world AFAIK where that name si male :D

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

Mime
View raw message