commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@joda.org>
Subject Re: [lang] Time for RC3?
Date Wed, 06 Jul 2011 07:29:45 GMT
On 4 July 2011 23:13, Jörg Schaible <joerg.schaible@gmx.de> wrote:
> Sorry, why is setValue more vague - isn't it the other way round?
As a method name, replace is explicit, set slightly less so. Either
work here, so if you want to change it go ahead.

More generally, I now think the index suffix scheme is wrong. It
should collect a list of data for the same key, because otherwise you
can't look up the data later (as the key has been silently changed
behind your back). API methods:

List<String> getValues(String key)
String getFirstValue(String key)

If its pluggable then an alternative implementation could not use a
list and only keep the first or last value. The default implementation
should keep all the values.

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message