Hi Kevin,

Having just refreshed my understanding of wild cards, I agree that Map<String, ?> would be right.

Craig

On Nov 30, 2007, at 7:36 PM, Kevin Menard wrote:

Map<String, Object> wouldn't work because you wouldn't be able to pass in say, Map<String, String>. You'd probably be looking for Map<String, ?> or
some extends variant.


On 11/30/07 10:31 PM, "Aristedes Maniatis" <[EMAIL PROTECTED]> wrote:

In SelectQuery, initWithProperties(Map<?,?> properties) has a
properties Map with wildcard keys and values. That has clashed
slightly with a choice I made elsewhere for these properties - I
originally thought that they were <String, String>

Now I've discovered that for cache groups the value can be a String [],
so perhaps <String, Object> is more suitable. Does that sound
reasonable? Are they used in others ways? This is the difference
between code I'd be writing for myself (where I'd make it really
tightly defined for compile time safety) and a public library where
others may want to override the public functions.

Whatever it is, I'd like to document more clearly what these
properties can represent (for example, will the key become an enum one
day?)

Ari

--
Kevin Menard
Servprise International, Inc.
Remote reboot & power control for network equipment
www.servprise.com              +1 508.892.3823 x308


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to