commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [Betwixt] Maps
Date Mon, 07 Apr 2003 16:33:48 GMT
can anyone remember if there is a way to read map entries using betwixt?

if not, then i'm going to add one. would supporting methods such as addFoo(
Object key, <SingularType> value) sound reasonable?

- robert

On Wednesday, April 2, 2003, at 04:57 AM, Kevin O'Neill wrote:

> What method signatures are required to make Maps work?
>
> I have:
>
> public Map getPairs()
> {
> 	return _beanPairs;
> }
>
> public void setPairs(Map pairMap)
> {
> 	_beanPairs = pairMap;
> }
>
> public void addPair(String key, SimpleBean bean)
> {
> 	_beanPairs.put(key, bean);
> }
>
> The map gets written, but never read. I've tried a few different
> approaches with no success.
>
> Any help would be great.
>
> -k.
>
> --
> If you don't test then your code is only a collection of bugs which
> apparently behave like a working program.
>
> Website: http://www.rocketred.com.au/blogs/kevin/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


Mime
View raw message